mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-23 21:07:17 +00:00
racing:: missing CAP_FILES guard
This commit is contained in:
parent
7d46acb1b8
commit
e47ad880a0
@ -1200,8 +1200,10 @@ void race_won() {
|
|||||||
sort(subtrack.begin(), subtrack.end(), [] (const ghost &g1, const ghost &g2) { return g1.result < g2.result; });
|
sort(subtrack.begin(), subtrack.end(), [] (const ghost &g1, const ghost &g2) { return g1.result < g2.result; });
|
||||||
if(isize(subtrack) > ghosts_to_save && ghosts_to_save > 0)
|
if(isize(subtrack) > ghosts_to_save && ghosts_to_save > 0)
|
||||||
subtrack.resize(ghosts_to_save);
|
subtrack.resize(ghosts_to_save);
|
||||||
|
#if CAP_FILES
|
||||||
if(ghosts_to_save > 0)
|
if(ghosts_to_save > 0)
|
||||||
write_ghosts(track_code, modecode());
|
write_ghosts(track_code, modecode());
|
||||||
|
#endif
|
||||||
|
|
||||||
if(official_race) uploadScore();
|
if(official_race) uploadScore();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user