mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
(svn r9069) -Codechange: Change a do ... while loop with a for loop. This fixes some warning that I never got anyway...
This commit is contained in:
parent
ce919e8c71
commit
6040e559ce
@ -640,8 +640,7 @@ static void DrawStationViewWindow(Window *w)
|
|||||||
y += 10;
|
y += 10;
|
||||||
}
|
}
|
||||||
|
|
||||||
CargoID i = 0;
|
for (CargoID i = 0; i != NUM_CARGO && pos > -5; i++) {
|
||||||
do {
|
|
||||||
uint waiting = GB(st->goods[i].waiting_acceptance, 0, 12);
|
uint waiting = GB(st->goods[i].waiting_acceptance, 0, 12);
|
||||||
if (waiting == 0) continue;
|
if (waiting == 0) continue;
|
||||||
|
|
||||||
@ -677,7 +676,7 @@ static void DrawStationViewWindow(Window *w)
|
|||||||
y += 10;
|
y += 10;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} while (pos > -5 && ++i != NUM_CARGO);
|
}
|
||||||
|
|
||||||
if (IsWindowOfPrototype(w, _station_view_widgets)) {
|
if (IsWindowOfPrototype(w, _station_view_widgets)) {
|
||||||
char *b = _userstring;
|
char *b = _userstring;
|
||||||
|
Loading…
Reference in New Issue
Block a user