summaryrefslogtreecommitdiff
path: root/settings.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 /settings.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 'settings.c')
-rw-r--r--settings.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/settings.c b/settings.c
index 0b77381cb..b8b72dd54 100644
--- a/settings.c
+++ b/settings.c
@@ -1210,6 +1210,7 @@ static const SettingDescGlobVarList _network_settings[] = {
SDTG_VAR("max_clients", SLE_UINT8, S, 0, _network_game_info.clients_max, 10, 0, 10, 0, STR_NULL, NULL),
SDTG_VAR("max_spectators", SLE_UINT8, S, 0, _network_game_info.spectators_max, 10, 0, 10, 0, STR_NULL, NULL),
SDTG_VAR("restart_game_year", SLE_INT32, S,D0, _network_restart_game_year, 0, MIN_YEAR, MAX_YEAR, 1, STR_NULL, NULL),
+ SDTG_VAR("min_players", SLE_UINT8, S, 0, _network_min_players, 0, 0, 10, 0, STR_NULL, NULL),
SDTG_END()
};
#endif /* ENABLE_NETWORK */