mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r217) -Fix: remove warning and simplify loop network_gui.c (Tron)
This commit is contained in:
parent
53ee4f6540
commit
1f1f578abb
|
@ -119,12 +119,8 @@ static void NetworkGameWindowWndProc(Window *w, WindowEvent *e)
|
||||||
|
|
||||||
{
|
{
|
||||||
NetworkGameList *cur_item = _network_game_list;
|
NetworkGameList *cur_item = _network_game_list;
|
||||||
int32 n = 0;
|
for (; id_v > 0 && cur_item != NULL; id_v--)
|
||||||
while (cur_item != NULL) {
|
|
||||||
if (n++ == id_v) { break;} // found clicked item
|
|
||||||
|
|
||||||
cur_item = cur_item->_next;
|
cur_item = cur_item->_next;
|
||||||
}
|
|
||||||
|
|
||||||
if (cur_item == NULL) { return;} // click out of vehicle bounds
|
if (cur_item == NULL) { return;} // click out of vehicle bounds
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue