From 0909ba8ab45bb3ab459b65c8ba6e13bae601b820 Mon Sep 17 00:00:00 2001 From: Hielke Morsink Date: Sat, 28 Nov 2015 14:34:22 +0100 Subject: [PATCH] fixed #2226: resetting screen age when quick saving --- src/game.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/game.c b/src/game.c index a53f67f12b..65802ea818 100644 --- a/src/game.c +++ b/src/game.c @@ -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() {