From fa63691d17f6336c82274bf199bda94324eae1b1 Mon Sep 17 00:00:00 2001 From: Richard Fine Date: Tue, 1 Jan 2019 19:18:07 +0000 Subject: [PATCH] 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. --- src/openrct2-ui/windows/Guest.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/openrct2-ui/windows/Guest.cpp b/src/openrct2-ui/windows/Guest.cpp index 9c0f2dfbd4..f6933c4f2c 100644 --- a/src/openrct2-ui/windows/Guest.cpp +++ b/src/openrct2-ui/windows/Guest.cpp @@ -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; }