From 8da01a1bf750e1ba8abadc88035a8bd143c6733f Mon Sep 17 00:00:00 2001 From: Graham Edgecombe Date: Thu, 28 May 2015 11:52:40 +0100 Subject: [PATCH] Fix building with -DDISABLE_TWITCH. The gTwitchEnable variable was used in some places without being wrapped around an #ifndef DISABLE_TWITCH block. --- src/windows/top_toolbar.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/windows/top_toolbar.c b/src/windows/top_toolbar.c index e7c49d44d7..66b8bee5de 100644 --- a/src/windows/top_toolbar.c +++ b/src/windows/top_toolbar.c @@ -368,8 +368,10 @@ static void window_top_toolbar_mousedown(int widgetIndex, rct_window*w, rct_widg numItems ); +#ifndef DISABLE_TWITCH if (_menuDropdownIncludesTwitch && gTwitchEnable) gDropdownItemsChecked |= (1 << 10); +#endif break; case WIDX_VIEW_MENU: top_toolbar_init_view_menu(w, widget); @@ -446,9 +448,11 @@ static void window_top_toolbar_dropdown() case DDIDX_EXIT_OPENRCT2: rct2_quit(); break; +#ifndef DISABLE_TWITCH case DDIDX_ENABLE_TWITCH: gTwitchEnable = !gTwitchEnable; break; +#endif } break; case WIDX_VIEW_MENU: