summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-10-03 16:25:03 +0000
committerpeter1138 <peter1138@openttd.org>2006-10-03 16:25:03 +0000
commite850358e730d4d0b45d37deaeb298d6b6ec010ab (patch)
treeb3b21efc5c1755d5d7bc74b348252758ff31cdd0
parent53744881a409f3d1624d0e60e3823370a3900cbe (diff)
downloadopenttd-e850358e730d4d0b45d37deaeb298d6b6ec010ab.tar.xz
(svn r6629) - Fix (r6628): One check for the number of players got misplaced by patch...
-rw-r--r--network_server.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/network_server.c b/network_server.c
index d70583ab5..840994b66 100644
--- a/network_server.c
+++ b/network_server.c
@@ -932,8 +932,6 @@ DEF_SERVER_RECEIVE_COMMAND(PACKET_CLIENT_QUIT)
if (new_cs->status > STATUS_AUTH) {
SEND_COMMAND(PACKET_SERVER_QUIT)(new_cs, cs->index, str);
}
-
- CheckMinPlayers();
}
cs->quited = true;
@@ -957,6 +955,8 @@ DEF_SERVER_RECEIVE_COMMAND(PACKET_CLIENT_ACK)
NetworkServer_HandleChat(NETWORK_ACTION_CHAT, DESTTYPE_BROADCAST, 0, "Game unpaused (client connected)", NETWORK_SERVER_INDEX);
}
+ CheckMinPlayers();
+
/* Execute script for, e.g. MOTD */
IConsoleCmdExec("exec scripts/on_server_connect.scr 0");
}