summaryrefslogtreecommitdiff
path: root/network_server.c
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-10-03 16:15:34 +0000
committerpeter1138 <peter1138@openttd.org>2006-10-03 16:15:34 +0000
commit53744881a409f3d1624d0e60e3823370a3900cbe (patch)
tree482f18a4ccfe72d4d8e699b988e5e3ef336eaf86 /network_server.c
parent950ef8f2373a2bf561d256f42c07606c3ce00854 (diff)
downloadopenttd-53744881a409f3d1624d0e60e3823370a3900cbe.tar.xz
(svn r6628) - Feature: Add the ability to pause a server if not enough players are connected. The setting for this is 'min_players' and can be set in the config and via the console. If the number of players drops below this number, the server will pause the game.
Diffstat (limited to 'network_server.c')
-rw-r--r--network_server.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/network_server.c b/network_server.c
index 2c646b162..d70583ab5 100644
--- a/network_server.c
+++ b/network_server.c
@@ -932,6 +932,8 @@ 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;