summaryrefslogtreecommitdiff
path: root/settings.c
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2005-03-29 19:10:13 +0000
committertruelight <truelight@openttd.org>2005-03-29 19:10:13 +0000
commit508738f836af7f5315ea14f8daa280d00cad2d10 (patch)
tree71c58f5741951475a3a1776a1833c7a13b621ba7 /settings.c
parentc68cfdeecaccbd3979e920ec424f98375e0f9e3d (diff)
downloadopenttd-508738f836af7f5315ea14f8daa280d00cad2d10.tar.xz
(svn r2106) -Fix: improved the network-join algoritm, it is now a bit more stable
-Add: added 'pause_on_join' and 'max_join_time' for MP games, where you can auto-pause the game when a client wants to join the game. This to avoid connection losses because of big maps (200+ trains). (with tnx to #openttdcoop for the ideas and testing)
Diffstat (limited to 'settings.c')
-rw-r--r--settings.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/settings.c b/settings.c
index fbc37713d..11b7b2f21 100644
--- a/settings.c
+++ b/settings.c
@@ -760,6 +760,8 @@ static const SettingDesc misc_settings[] = {
static const SettingDesc network_settings[] = {
{"sync_freq", SDT_UINT16 | SDT_NOSAVE, (void*)100, &_network_sync_freq, NULL},
{"frame_freq", SDT_UINT8 | SDT_NOSAVE, (void*)0, &_network_frame_freq, NULL},
+ {"max_join_time", SDT_UINT, (void*)500, &_network_max_join_time, NULL},
+ {"pause_on_join", SDT_BOOL, (void*)false, &_network_pause_on_join, NULL},
{"server_bind_ip", SDT_STRINGBUF | (lengthof(_network_server_bind_ip_host) << 16), "0.0.0.0", &_network_server_bind_ip_host, NULL},
{"server_port", SDT_UINT, (void*)NETWORK_DEFAULT_PORT, &_network_server_port, NULL},
{"server_advertise",SDT_BOOL, (void*)false, &_network_advertise, NULL},