Fix for "10th score" leaderboard bug, Reduce load from GAMESTATE::StoreRankingName()

- Fixes bug where 10th scores get erased when two players play the same song multiple times and rank on the leaderboard more than once
- Only clamping leaderboards and deduping high scores for songs/courses once overall instead of once per player
- Instead of looping through every song and course on the machine multiple times -> Only loop through the songs/course played in the past session
This commit is contained in:
Crash Cringle
2023-03-16 18:19:09 -07:00
committed by teejusb
parent 20854530ed
commit efaf38b8ed
2 changed files with 68 additions and 18 deletions
+1
View File
@@ -357,6 +357,7 @@ public:
bool AnyPlayerHasRankingFeats() const;
void StoreRankingName( PlayerNumber pn, RString name ); // Called by name entry screens
std::vector<RString*> m_vpsNamesThatWereFilled; // filled on StoreRankingName,
std::set<PlayerNumber> m_sPlayersThatWereFilled; // filled on StoreRankingName,
// Award stuff
// lowest priority in front, highest priority at the back.