diff options
author | rubidium <rubidium@openttd.org> | 2015-09-19 16:49:46 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2015-09-19 16:49:46 +0000 |
commit | ff5c05c1b41196589b1bf847a4973ef812e1ddfc (patch) | |
tree | ccb18c2d7bd071ecfc73d5ab2175689fb5b8f0c5 /src/network/network.cpp | |
parent | 8fbcc2b45c9b7ac0e9282e57bba1e5daf8c6e630 (diff) | |
download | openttd-ff5c05c1b41196589b1bf847a4973ef812e1ddfc.tar.xz |
(svn r27400) -Fix [FS#6368] (r26449): when a dedicated server was paused with no clients the tick length was increased significantly, making any assumptions about the tick length used further down in the code are not true anymore. One of such assumptions was that one should readvertise every 15 minutes worth of original ticks, but due to the lengthening this timeframe would be more like 45-60 minutes. Now we'll take the operating system's millisecond counter instead
Diffstat (limited to 'src/network/network.cpp')
-rw-r--r-- | src/network/network.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/network/network.cpp b/src/network/network.cpp index ce37aaa3f..0bbdd0d06 100644 --- a/src/network/network.cpp +++ b/src/network/network.cpp @@ -63,7 +63,6 @@ NetworkCompanyState *_network_company_states = NULL; ///< Statistics about some ClientID _network_own_client_id; ///< Our client identifier. ClientID _redirect_console_to_client; ///< If not invalid, redirect the console output to a client. bool _network_need_advertise; ///< Whether we need to advertise. -uint32 _network_last_advertise_frame; ///< Last time we did advertise. uint8 _network_reconnect; ///< Reconnect timeout StringList _network_bind_list; ///< The addresses to bind on. StringList _network_host_list; ///< The servers we know. @@ -759,7 +758,6 @@ bool NetworkServerStart() if (_network_dedicated) IConsoleCmdExec("exec scripts/on_dedicated.scr 0"); /* Try to register us to the master server */ - _network_last_advertise_frame = 0; _network_need_advertise = true; NetworkUDPAdvertise(); @@ -1076,7 +1074,6 @@ void NetworkStartUp() /* Network is available */ _network_available = NetworkCoreInitialize(); _network_dedicated = false; - _network_last_advertise_frame = 0; _network_need_advertise = true; _network_advertise_retries = 0; |