1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-25 10:57:59 +00:00

racing fixed (hopefully)

This commit is contained in:
Zeno Rogue
2022-08-07 02:16:40 +02:00
parent 884a9bb2c5
commit 0dc84d8f34
2 changed files with 8 additions and 3 deletions

View File

@@ -80,6 +80,7 @@ vector<ghost> ghostset;
array<vector<ghostmoment>, MAXPLAYER> current_history;
EX map<eLand, int> best_scores;
EX map<eLand, int> best_scores_to_save;
string ghost_prefix = "default";
@@ -1287,6 +1288,7 @@ EX void race_won() {
if(!best_scores.count(specialland))
best_scores[specialland] = result;
best_scores[specialland] = min(best_scores[specialland], result);
best_scores_to_save[specialland] = result;
saveStats();
if(official_race) uploadScore();
}