From 5d19c44e463d1335dc51063f7ed424b114821e83 Mon Sep 17 00:00:00 2001 From: LRFLEW Date: Thu, 20 Aug 2015 20:57:09 -0500 Subject: [PATCH] Fixed autosaves preventing saving before quitting dialog from appearing --- src/scenario.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/scenario.c b/src/scenario.c index 9f5293d7b7..2b3a515032 100644 --- a/src/scenario.c +++ b/src/scenario.c @@ -975,7 +975,8 @@ int scenario_save(SDL_RWops* rw, int flags) reset_loaded_objects(); gfx_invalidate_screen(); - RCT2_GLOBAL(RCT2_ADDRESS_SCREEN_AGE, uint16) = 0; + if (!(flags & 0x80000000)) + RCT2_GLOBAL(RCT2_ADDRESS_SCREEN_AGE, uint16) = 0; return 1; }