1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-02-01 03:05:24 +01:00

Better annotate some magic numbers in for loops

This commit is contained in:
Hielke Morsink
2022-10-17 18:08:55 +02:00
committed by GitHub
parent fdbceae17c
commit 3bb8ea3668
20 changed files with 62 additions and 61 deletions

View File

@@ -277,9 +277,9 @@ static void WindowMultiplayerAnchorBorderWidgets(rct_window* w)
static void WindowMultiplayerSetPressedTab(rct_window* w)
{
for (int32_t i = 0; i < 2; i++)
for (int32_t i = WIDX_TAB1; i <= WIDX_TAB4; i++)
{
w->pressed_widgets &= ~(1 << (WIDX_TAB1 + i));
w->pressed_widgets &= ~(1 << i);
}
w->pressed_widgets |= 1LL << (WIDX_TAB1 + w->page);
}