mirror of https://github.com/OpenTTD/OpenTTD
(svn r1012) -Fix: [Network] Endless loop if a server was offline (WizKid)
parent
72559a785e
commit
8dc2405ad6
|
@ -123,7 +123,7 @@ static void NetworkGameWindowWndProc(Window *w, WindowEvent *e)
|
|||
DrawString(135, y, STR_NETWORK_CLIENTS_ONLINE, 2);
|
||||
|
||||
// only draw icons if the server is online
|
||||
if(cur_item->online) {
|
||||
if (cur_item->online) {
|
||||
|
||||
// draw a lock if the server is password protected.
|
||||
if(cur_item->info.use_password)
|
||||
|
@ -134,11 +134,11 @@ static void NetworkGameWindowWndProc(Window *w, WindowEvent *e)
|
|||
|
||||
// draw flag according to server language
|
||||
DrawSprite(SPR_FLAGS_BASE + cur_item->info.server_lang, 206, y);
|
||||
|
||||
cur_item = cur_item->next;
|
||||
y += NET_PRC__SIZE_OF_ROW;
|
||||
if (++n == w->vscroll.cap) { break;} // max number of games in the window
|
||||
}
|
||||
|
||||
cur_item = cur_item->next;
|
||||
y += NET_PRC__SIZE_OF_ROW;
|
||||
if (++n == w->vscroll.cap) { break;} // max number of games in the window
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue