mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-27 16:54:52 +01:00
Disable guest debug tab when debug tools not turned on
Disable the debug tab in the guest window when the debugging tools are not turned on, causing it to be completely hidden from view.
This commit is contained in:
@@ -623,6 +623,10 @@ void window_guest_disable_widgets(rct_window* w)
|
||||
{
|
||||
disabled_widgets |= (1 << WIDX_TAB_4); // Disable finance tab if no money
|
||||
}
|
||||
if (!gConfigGeneral.debugging_tools)
|
||||
{
|
||||
disabled_widgets |= (1 << WIDX_TAB_7); // Disable debug tab when debug tools not turned on
|
||||
}
|
||||
w->disabled_widgets = disabled_widgets;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user