From 111a2e819874513cd8c3cac8a699e39a33b65bed Mon Sep 17 00:00:00 2001 From: zsilencer Date: Thu, 30 Jul 2015 08:09:39 -0600 Subject: [PATCH] fix another source of nondeterminism --- src/game.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/game.c b/src/game.c index f791bce993..ded5d1dc6d 100644 --- a/src/game.c +++ b/src/game.c @@ -319,8 +319,6 @@ void game_update() window_map_tooltip_update_visibility(); - RCT2_GLOBAL(0x01388698, uint16)++; - // Input RCT2_GLOBAL(0x0141F568, uint8) = RCT2_GLOBAL(0x0013CA740, uint8); game_handle_input(); @@ -367,6 +365,8 @@ void game_logic_update() climate_update_sound(); editor_open_windows_for_current_step(); + RCT2_GLOBAL(0x01388698, uint16)++; + // Update windows //window_dispatch_update_all(); @@ -860,6 +860,8 @@ void game_load_init() gGameSpeed = 1; scenario_set_filename((char*)0x0135936C); + + RCT2_GLOBAL(0x01388698, uint16) = 0; } /*