forked from mirror/OpenTTD
(svn r217) -Fix: remove warning and simplify loop network_gui.c (Tron)
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user