diff options
author | Darkvater <darkvater@openttd.org> | 2006-08-27 10:49:43 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2006-08-27 10:49:43 +0000 |
commit | cb4e99ddfbdb5235c8281770959e1c4f77a8f51f (patch) | |
tree | e3074560da7750c1df452cc89315adfd92e07842 /settings.c | |
parent | 2f6a4bc1a92aeb4904e5e84e23fa28d0307a303c (diff) | |
download | openttd-cb4e99ddfbdb5235c8281770959e1c4f77a8f51f.tar.xz |
(svn r6170) -Feature: save max_companies/clients/spectators in the config file.
Diffstat (limited to 'settings.c')
-rw-r--r-- | settings.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/settings.c b/settings.c index df580faa7..d546918f9 100644 --- a/settings.c +++ b/settings.c @@ -1206,6 +1206,9 @@ static const SettingDescGlobVarList _network_settings[] = { SDTG_BOOL("autoclean_companies", S, 0, _network_autoclean_companies, false, STR_NULL, NULL), SDTG_VAR("autoclean_unprotected",SLE_UINT8, S, 0, _network_autoclean_unprotected,12, 0, 60, STR_NULL, NULL), SDTG_VAR("autoclean_protected", SLE_UINT8, S, 0, _network_autoclean_protected, 36, 0, 180, STR_NULL, NULL), + SDTG_VAR("max_companies", SLE_UINT8, S, 0, _network_game_info.companies_max, 8,0, 8, STR_NULL, NULL), + SDTG_VAR("max_clients", SLE_UINT8, S, 0, _network_game_info.clients_max, 10,0,10, STR_NULL, NULL), + SDTG_VAR("max_spectators", SLE_UINT8, S, 0, _network_game_info.spectators_max,10,0,10, STR_NULL, NULL), SDTG_VAR("restart_game_year", SLE_INT32, S,D0, _network_restart_game_year, 0, MIN_YEAR, MAX_YEAR, STR_NULL, NULL), SDTG_END() }; |