Use correct update order

This commit is contained in:
Matt 2019-08-21 00:28:08 +02:00
parent 8c9008825d
commit 3bdc3935dc
No known key found for this signature in database
GPG Key ID: 6D4C24A61C93E208
1 changed files with 1 additions and 3 deletions

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