mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-26 16:24:35 +01:00
Better annotate some magic numbers in for loops
This commit is contained in:
@@ -218,8 +218,8 @@ rct_window* WindowEditorObjectiveOptionsOpen()
|
||||
static void WindowEditorObjectiveOptionsSetPressedTab(rct_window* w)
|
||||
{
|
||||
int32_t i;
|
||||
for (i = 0; i < 2; i++)
|
||||
w->pressed_widgets &= ~(1 << (WIDX_TAB_1 + i));
|
||||
for (i = WIDX_TAB_1; i <= WIDX_TAB_2; i++)
|
||||
w->pressed_widgets &= ~(1 << i);
|
||||
w->pressed_widgets |= 1LL << (WIDX_TAB_1 + w->page);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user