1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-16 03:23:15 +01:00

Remove enabledWidgets (#17023)

This was old and unused code which broke the build on MacOS.
This commit is contained in:
EWouters
2022-04-21 06:59:35 +02:00
committed by GitHub
parent 9164905189
commit 658efeb4a2

View File

@@ -669,7 +669,7 @@ static void WindowTopToolbarDropdown(rct_window* w, rct_widgetindex widgetIndex,
*/
static void WindowTopToolbarInvalidate(rct_window* w)
{
int32_t x, enabledWidgets, widgetIndex, widgetWidth, firstAlignment;
int32_t x, widgetIndex, widgetWidth, firstAlignment;
rct_widget* widget;
// Enable / disable buttons
@@ -781,11 +781,6 @@ static void WindowTopToolbarInvalidate(rct_window* w)
break;
}
enabledWidgets = 0;
for (int i = WIDX_PAUSE; i <= WIDX_CHAT; i++)
if (window_top_toolbar_widgets[i].type != WindowWidgetType::Empty)
enabledWidgets |= (1 << i);
// Align left hand side toolbar buttons
firstAlignment = 1;
x = 0;