summaryrefslogtreecommitdiff
path: root/network_gui.c
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2004-12-10 22:01:17 +0000
committertruelight <truelight@openttd.org>2004-12-10 22:01:17 +0000
commit8dc2405ad62ac4e6ffd92182359c10a23a66fd47 (patch)
tree74fb67c405c1e2e43e1f01b65ac71741bf73c4c9 /network_gui.c
parent72559a785ec602fd3276fc7d6c8e5ef595bd8422 (diff)
downloadopenttd-8dc2405ad62ac4e6ffd92182359c10a23a66fd47.tar.xz
(svn r1012) -Fix: [Network] Endless loop if a server was offline (WizKid)
Diffstat (limited to 'network_gui.c')
-rw-r--r--network_gui.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/network_gui.c b/network_gui.c
index 537611c09..774ba9a7a 100644
--- a/network_gui.c
+++ b/network_gui.c
@@ -123,22 +123,22 @@ 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)
DrawSprite(SPR_LOCK, 186, y-1);
-
+
// draw red or green icon, depending on compatibility with server.
DrawSprite(SPR_BLOT | (compatible?0x30d8000:0x30b8000), 195, y);
-
+
// 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
}
}