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
commitb32397946d11c1f103209e3b3d31ea610c0f5f77 (patch)
tree482f18a4ccfe72d4d8e699b988e5e3ef336eaf86 /settings.c
parent3f8082b4b7b67378f933dc84204744324e9a143b (diff)
downloadopenttd-b32397946d11c1f103209e3b3d31ea610c0f5f77.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 */