1
0
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:
? 2019-02-28 15:06:23 +01:00 committed by Zeno Rogue
parent 7d46acb1b8
commit e47ad880a0

View File

@ -1200,8 +1200,10 @@ void race_won() {
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)
subtrack.resize(ghosts_to_save);
#if CAP_FILES
if(ghosts_to_save > 0)
write_ghosts(track_code, modecode());
#endif
if(official_race) uploadScore();
}