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:
committed by
duncanspumpkin
parent
4527aa263e
commit
0909ba8ab4
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user