From 3bdc3935dcd719b56366bd3371f839ff77276ba5 Mon Sep 17 00:00:00 2001 From: Matt Date: Wed, 21 Aug 2019 00:28:08 +0200 Subject: [PATCH] Use correct update order --- src/openrct2/GameState.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/openrct2/GameState.cpp b/src/openrct2/GameState.cpp index fc3eb24a05..38f0c82caa 100644 --- a/src/openrct2/GameState.cpp +++ b/src/openrct2/GameState.cpp @@ -301,11 +301,9 @@ void GameState::UpdateLogic() gLastAutoSaveUpdate = Platform::GetTicks(); } - // 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_pending(); GameActions::ProcessQueue(); + network_process_pending(); network_flush(); gCurrentTicks++;