mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-24 17:10:36 +00:00
yet another fix to racing
This commit is contained in:
parent
ce8e3c8640
commit
e686f5bc39
@ -1265,7 +1265,10 @@ EX void loadsave() {
|
|||||||
int land, score;
|
int land, score;
|
||||||
sscanf(buf, "%70s%9s%d%d", buf1, ver, &land, &score);
|
sscanf(buf, "%70s%9s%d%d", buf1, ver, &land, &score);
|
||||||
/* score may equal 0 because of earlier bugs */
|
/* score may equal 0 because of earlier bugs */
|
||||||
if(score) racing::best_scores[eLand(land)] = score;
|
if(score) {
|
||||||
|
auto& res = racing::best_scores[eLand(land)];
|
||||||
|
if(score < res || res == 0) res = score;
|
||||||
|
}
|
||||||
println(hlog, "loaded the score for ", dnameof(eLand(land)), " of ", score);
|
println(hlog, "loaded the score for ", dnameof(eLand(land)), " of ", score);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user