Changeset - r216:ef40ce72a09c
[Not reviewed]
master
0 1 0
darkvater - 20 years ago 2004-09-12 17:37:37
darkvater@openttd.org
(svn r217) -Fix: remove warning and simplify loop network_gui.c (Tron)
1 file changed with 1 insertions and 5 deletions:
0 comments (0 inline, 0 general)
network_gui.c
Show inline comments
 
@@ -119,12 +119,8 @@ static void NetworkGameWindowWndProc(Win
 

	
 
			{
 
				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
 

	
0 comments (0 inline, 0 general)