mirror of https://github.com/OpenTTD/OpenTTD
(svn r1012) -Fix: [Network] Endless loop if a server was offline (WizKid)
parent
72559a785e
commit
8dc2405ad6
|
@ -134,13 +134,13 @@ static void NetworkGameWindowWndProc(Window *w, WindowEvent *e)
|
||||||
|
|
||||||
// draw flag according to server language
|
// draw flag according to server language
|
||||||
DrawSprite(SPR_FLAGS_BASE + cur_item->info.server_lang, 206, y);
|
DrawSprite(SPR_FLAGS_BASE + cur_item->info.server_lang, 206, y);
|
||||||
|
}
|
||||||
|
|
||||||
cur_item = cur_item->next;
|
cur_item = cur_item->next;
|
||||||
y += NET_PRC__SIZE_OF_ROW;
|
y += NET_PRC__SIZE_OF_ROW;
|
||||||
if (++n == w->vscroll.cap) { break;} // max number of games in the window
|
if (++n == w->vscroll.cap) { break;} // max number of games in the window
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// right menu
|
// right menu
|
||||||
GfxFillRect(252, 23, 468, 65, 157);
|
GfxFillRect(252, 23, 468, 65, 157);
|
||||||
|
|
Loading…
Reference in New Issue