From d68bed10cdbe41c3fdb7a628fd339ce5bf094158 Mon Sep 17 00:00:00 2001 From: Hielke Morsink Date: Mon, 19 Jun 2017 22:16:19 +0200 Subject: [PATCH] Readd call to network_process_game_commands (#5662) --- src/openrct2/game.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/openrct2/game.c b/src/openrct2/game.c index bf4e8866cb..6df67285e5 100644 --- a/src/openrct2/game.c +++ b/src/openrct2/game.c @@ -388,6 +388,10 @@ void game_logic_update() } } + // Separated out processing commands in network_update which could call scenario_rand where gInUpdateCode is false. + // All commands that are received are first queued and then executed where gInUpdateCode is set to true. + network_process_game_commands(); + gScreenAge++; if (gScreenAge == 0) gScreenAge--;