1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-23 23:04:36 +01:00

Use correct update order

This commit is contained in:
Matt
2019-08-21 00:28:08 +02:00
parent 8c9008825d
commit 3bdc3935dc

View File

@@ -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++;