1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 11:03:00 +01:00

fixed #2226: resetting screen age when quick saving

This commit is contained in:
Hielke Morsink
2015-11-28 14:34:22 +01:00
committed by duncanspumpkin
parent 4527aa263e
commit 0909ba8ab4

View File

@@ -1042,11 +1042,14 @@ void save_game()
scenario_save(rw, 0x80000000);
log_verbose("Saved to %s", gScenarioSavePath);
SDL_RWclose(rw);
// Setting screen age to zero, so no prompt will pop up when closing the
// game shortly after saving.
RCT2_GLOBAL(RCT2_ADDRESS_SCREEN_AGE, uint16) = 0;
}
} else {
save_game_as();
}
}
void save_game_as()
{