From 508738f836af7f5315ea14f8daa280d00cad2d10 Mon Sep 17 00:00:00 2001 From: truelight Date: Tue, 29 Mar 2005 19:10:13 +0000 Subject: (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) --- settings.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'settings.c') 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}, -- cgit v1.2.3-54-g00ecf