mirror of https://github.com/OpenTTD/OpenTTD
(svn r1280) -Codechange: made the last patch a bit more... readable (in other words:
use that spacebar!!)release/0.4.5
parent
b01382c20b
commit
f3c8f40c51
|
@ -110,13 +110,15 @@ static void NetworkGameWindowWndProc(Window *w, WindowEvent *e)
|
||||||
{ // draw list of games
|
{ // draw list of games
|
||||||
uint16 y = NET_PRC__OFFSET_TOP_WIDGET + 3;
|
uint16 y = NET_PRC__OFFSET_TOP_WIDGET + 3;
|
||||||
int32 n = 0;
|
int32 n = 0;
|
||||||
int32 pos=w->vscroll.pos;
|
int32 pos = w->vscroll.pos;
|
||||||
char servername[NETWORK_NAME_LENGTH];
|
char servername[NETWORK_NAME_LENGTH];
|
||||||
const NetworkGameList *cur_item = _network_game_list;
|
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;
|
cur_item = cur_item->next;
|
||||||
}
|
}
|
||||||
|
|
||||||
while (cur_item != NULL) {
|
while (cur_item != NULL) {
|
||||||
bool compatible = (strncmp(cur_item->info.server_revision, _openttd_revision, NETWORK_REVISION_LENGTH - 1) == 0);
|
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)
|
if (strncmp(cur_item->info.server_revision, NOREV_STRING, sizeof(cur_item->info.server_revision)) == 0)
|
||||||
|
|
Loading…
Reference in New Issue