diff options
author | truelight <truelight@openttd.org> | 2004-12-27 10:24:38 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2004-12-27 10:24:38 +0000 |
commit | 80fde9809862e79573f0601b97379354a64e877a (patch) | |
tree | 49d08db70d3aa76776f7a2c621f37d143cd0b384 | |
parent | d1b6768398d89b2730777269cb32a8023860f137 (diff) | |
download | openttd-80fde9809862e79573f0601b97379354a64e877a.tar.xz |
(svn r1280) -Codechange: made the last patch a bit more... readable (in other words:
use that spacebar!!)
-rw-r--r-- | network_gui.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/network_gui.c b/network_gui.c index 27fbd1b22..41a0222f0 100644 --- a/network_gui.c +++ b/network_gui.c @@ -110,13 +110,15 @@ static void NetworkGameWindowWndProc(Window *w, WindowEvent *e) { // draw list of games uint16 y = NET_PRC__OFFSET_TOP_WIDGET + 3; int32 n = 0; - int32 pos=w->vscroll.pos; + int32 pos = w->vscroll.pos; char servername[NETWORK_NAME_LENGTH]; const NetworkGameList *cur_item = _network_game_list; - while (pos>0 && cur_item != NULL) { - --pos; + + while (pos > 0 && cur_item != NULL) { + pos--; cur_item = cur_item->next; } + while (cur_item != NULL) { bool compatible = (strncmp(cur_item->info.server_revision, _openttd_revision, NETWORK_REVISION_LENGTH - 1) == 0); if (strncmp(cur_item->info.server_revision, NOREV_STRING, sizeof(cur_item->info.server_revision)) == 0) |