mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-28 17:24:47 +01:00
Fix #14964: Building in multiplayer while paused
This commit is contained in:
@@ -151,14 +151,24 @@ void GameState::Update()
|
||||
}
|
||||
else
|
||||
{
|
||||
// NOTE: Here are a few special cases that would be normally handled in UpdateLogic.
|
||||
// If the game is paused it will not call UpdateLogic at all.
|
||||
numUpdates = 0;
|
||||
|
||||
if (network_get_mode() == NETWORK_MODE_SERVER)
|
||||
{
|
||||
// Make sure the client always knows about what tick the host is on.
|
||||
network_send_tick();
|
||||
}
|
||||
|
||||
// Update the animation list. Note this does not
|
||||
// increment the map animation.
|
||||
map_animation_invalidate_all();
|
||||
|
||||
// Special case because we set numUpdates to 0, otherwise in game_logic_update.
|
||||
// Post-tick network update
|
||||
network_process_pending();
|
||||
|
||||
// Post-tick game actions.
|
||||
GameActions::ProcessQueue();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user