From 40a9b91b37ecac9aad66d1deeca4c6ad2cff1f7f 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) --- network.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'network.h') diff --git a/network.h b/network.h index 322bec066..6da06d798 100644 --- a/network.h +++ b/network.h @@ -161,6 +161,9 @@ VARDEF char _network_server_name[NETWORK_NAME_LENGTH]; VARDEF char _network_server_password[NETWORK_PASSWORD_LENGTH]; VARDEF char _network_rcon_password[NETWORK_PASSWORD_LENGTH]; +VARDEF uint16 _network_max_join_time; //! Time a client can max take to join +VARDEF bool _network_pause_on_join; //! Pause the game when a client tries to join (more chance of succeeding join) + VARDEF uint16 _redirect_console_to_client; VARDEF uint16 _network_sync_freq; -- cgit v1.2.3-54-g00ecf