Merge pull request #27104 from Gymnasiast/fix/27093

Fix #27093: Pause and fast forward buttons are shown in multiplayer
This commit is contained in:
Hielke Morsink authored and GitHub committed 2026-09-12 01:14:47 +02:00
commit 255928221c
2 files changed
+14 -5

No files matched your search

+1
View File
@@ -5,6 +5,7 @@
- Fix: [#27052] Unnamed rides in RCT2 base and Wacky Worlds scenarios have hardcoded English names.
- Fix: [#27056] [Plugin] Loading water palettes from plugin does not update the palette correctly.
- Fix: [#27087] The ‘Update available’ widget is offset incorrectly.
- Fix: [#27093] Pause and fast forward buttons are shown in multiplayer.
0.5.5 (2026-09-06)
------------------------------------------------------------------------
+13 -5
View File
@@ -1152,11 +1152,19 @@ namespace OpenRCT2::Ui::Windows
if (isInEditorMode())
return;
const auto mode = Network::GetMode();
widgets[WIDX_NETWORK].setHidden(mode == Network::Mode::none);
widgets[WIDX_CHAT].setHidden(mode == Network::Mode::none);
widgets[WIDX_PAUSE].setHidden(mode == Network::Mode::client);
widgets[WIDX_FASTFORWARD].setHidden(mode == Network::Mode::server);
switch (Network::GetMode())
{
case Network::Mode::none:
widgets[WIDX_NETWORK].setHidden(true);
widgets[WIDX_CHAT].setHidden(true);
break;
case Network::Mode::client:
widgets[WIDX_PAUSE].setHidden(true);
[[fallthrough]];
case Network::Mode::server:
widgets[WIDX_FASTFORWARD].setHidden(true);
break;
}
}
void ApplyZoomState()