(svn r217) -Fix: remove warning and simplify loop network_gui.c (Tron)

This commit is contained in:
darkvater 2004-09-12 17:37:37 +00:00
parent 53ee4f6540
commit 1f1f578abb
1 changed files with 1 additions and 5 deletions

View File

@ -119,12 +119,8 @@ static void NetworkGameWindowWndProc(Window *w, WindowEvent *e)
{
NetworkGameList *cur_item = _network_game_list;
int32 n = 0;
while (cur_item != NULL) {
if (n++ == id_v) { break;} // found clicked item
for (; id_v > 0 && cur_item != NULL; id_v--)
cur_item = cur_item->_next;
}
if (cur_item == NULL) { return;} // click out of vehicle bounds