1
0
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:
Richard Fine
2019-01-01 19:18:07 +00:00
committed by Ted John
parent c4a449f47d
commit fa63691d17

View File

@@ -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;
}