forked from mirror/OpenTTD
(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.
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user