1
0
Fork 0

(svn r1280) -Codechange: made the last patch a bit more... readable (in other words:

use that spacebar!!)
release/0.4.5
truelight 2004-12-27 10:24:38 +00:00
parent b01382c20b
commit f3c8f40c51
1 changed files with 5 additions and 3 deletions

View File

@ -113,10 +113,12 @@ static void NetworkGameWindowWndProc(Window *w, WindowEvent *e)
int32 pos = w->vscroll.pos;
char servername[NETWORK_NAME_LENGTH];
const NetworkGameList *cur_item = _network_game_list;
while (pos > 0 && cur_item != NULL) {
--pos;
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)