Only disable guest pickup widget when on correct page (#26591)

This commit is contained in:
Michał Janiszewski authored and GitHub committed 2026-05-28 11:57:40 +00:00
1 parent 8ce9661dc9
commit 1492608cd9
2 files changed
+9 -4

No files matched your search

+1
View File
@@ -1,6 +1,7 @@
0.5.2 (in development)
------------------------------------------------------------------------
- Improved: [#26566] Improve the performance of sorting sprites.
- Fix: [#26565] Game crashes when switching to another tab in the guest window.
- Fix: [#26583] The default tab is not highlighted when opening a ride window.
- Fix: [#26602] Crash when locating the nearest mechanic for a ride that has not previously been inspected.
- Fix: [#26615] Missing junction path tile in Build your own Six Flags Over Texas.
+8 -4
View File
@@ -487,10 +487,14 @@ namespace OpenRCT2::Ui::Windows
return;
}
const bool disablePickup = !peep->CanBePickedUp();
if (disablePickup != isWidgetDisabled(WIDX_PICKUP))
invalidate();
setWidgetDisabled(WIDX_PICKUP, disablePickup);
if (page == WINDOW_GUEST_OVERVIEW)
{
const bool disablePickup = !peep->CanBePickedUp();
if (disablePickup != isWidgetDisabled(WIDX_PICKUP))
invalidate();
setWidgetDisabled(WIDX_PICKUP, disablePickup);
}
setWidgetDisabled(WIDX_TAB_4, (getGameState().park.flags & PARK_FLAGS_NO_MONEY) != 0);
setWidgetDisabled(WIDX_TAB_7, !Config::Get().general.debuggingTools);
}