mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-15 12:02:34 +01:00
Fix #14964: Building in multiplayer while paused
This commit is contained in:
@@ -32,6 +32,7 @@
|
|||||||
- Fix: [#14871] Crash when trying to place track when there are no free tile elements.
|
- Fix: [#14871] Crash when trying to place track when there are no free tile elements.
|
||||||
- Fix: [#14880] Unable to close changelog window when its content fails to load.
|
- Fix: [#14880] Unable to close changelog window when its content fails to load.
|
||||||
- Fix: [#14945] Incorrect drop height penalty on log flume ride.
|
- Fix: [#14945] Incorrect drop height penalty on log flume ride.
|
||||||
|
- Fix: [#14964] Unable to build in multiplayer as client with "Build while paused" cheat enabled when the host is paused.
|
||||||
- Improved: [#14511] “Unlock operating limits” cheat now also unlocks all music.
|
- Improved: [#14511] “Unlock operating limits” cheat now also unlocks all music.
|
||||||
- Improved: [#14712, #14716]: Improve startup times.
|
- Improved: [#14712, #14716]: Improve startup times.
|
||||||
|
|
||||||
|
|||||||
@@ -151,14 +151,24 @@ void GameState::Update()
|
|||||||
}
|
}
|
||||||
else
|
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;
|
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
|
// Update the animation list. Note this does not
|
||||||
// increment the map animation.
|
// increment the map animation.
|
||||||
map_animation_invalidate_all();
|
map_animation_invalidate_all();
|
||||||
|
|
||||||
// Special case because we set numUpdates to 0, otherwise in game_logic_update.
|
// Post-tick network update
|
||||||
network_process_pending();
|
network_process_pending();
|
||||||
|
|
||||||
|
// Post-tick game actions.
|
||||||
GameActions::ProcessQueue();
|
GameActions::ProcessQueue();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -37,7 +37,7 @@
|
|||||||
// This string specifies which version of network stream current build uses.
|
// This string specifies which version of network stream current build uses.
|
||||||
// It is used for making sure only compatible builds get connected, even within
|
// It is used for making sure only compatible builds get connected, even within
|
||||||
// single OpenRCT2 version.
|
// single OpenRCT2 version.
|
||||||
#define NETWORK_STREAM_VERSION "19"
|
#define NETWORK_STREAM_VERSION "20"
|
||||||
#define NETWORK_STREAM_ID OPENRCT2_VERSION "-" NETWORK_STREAM_VERSION
|
#define NETWORK_STREAM_ID OPENRCT2_VERSION "-" NETWORK_STREAM_VERSION
|
||||||
|
|
||||||
static Peep* _pickup_peep = nullptr;
|
static Peep* _pickup_peep = nullptr;
|
||||||
|
|||||||
Reference in New Issue
Block a user