diff options
author | peter1138 <peter1138@openttd.org> | 2006-10-03 16:15:34 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2006-10-03 16:15:34 +0000 |
commit | 53744881a409f3d1624d0e60e3823370a3900cbe (patch) | |
tree | 482f18a4ccfe72d4d8e699b988e5e3ef336eaf86 /network.h | |
parent | 950ef8f2373a2bf561d256f42c07606c3ce00854 (diff) | |
download | openttd-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.h')
-rw-r--r-- | network.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -207,6 +207,7 @@ VARDEF uint8 _network_autoclean_unprotected; // Remove a company after X months VARDEF uint8 _network_autoclean_protected; // Unprotect a company after X months VARDEF Year _network_restart_game_year; // If this year is reached, the server automaticly restarts +VARDEF uint8 _network_min_players; // Minimum number of players for game to unpause NetworkGameList *NetworkQueryServer(const char* host, unsigned short port, bool game_info); @@ -221,6 +222,7 @@ void NetworkAddServer(const char *b); void NetworkRebuildHostList(void); bool NetworkChangeCompanyPassword(byte argc, char *argv[]); void NetworkPopulateCompanyInfo(void); +void CheckMinPlayers(void); #endif /* ENABLE_NETWORK */ |