fixed #2226: resetting screen age when quick saving

This commit is contained in:
Hielke Morsink authored and duncanspumpkin committed 2015-11-29 17:18:41 +00:00
1 parent 4527aa263e
commit 0909ba8ab4
1 file changed
+4 -1
+4 -1
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()
{