(svn r3409) - Change the server advertisement interval to use the frame counter instead

of game days. This allows a paused server to continue to advertise itself.
  This also fixes advertising for games that start before 1922.
This commit is contained in:
peter1138
2006-01-19 17:50:40 +00:00
parent 6132d15df9
commit c56ae910f0
4 changed files with 24 additions and 15 deletions

View File

@@ -983,7 +983,8 @@ bool NetworkServerStart(void)
if (_network_dedicated) IConsoleCmdExec("exec scripts/on_dedicated.scr 0");
/* Try to register us to the master server */
_network_last_advertise_date = 0;
_network_last_advertise_frame = 0;
_network_need_advertise = true;
NetworkUDPAdvertise();
return true;
}
@@ -1321,7 +1322,8 @@ void NetworkStartUp(void)
// Network is available
_network_available = true;
_network_dedicated = false;
_network_last_advertise_date = 0;
_network_last_advertise_frame = 0;
_network_need_advertise = true;
_network_advertise_retries = 0;
/* Load the ip from the openttd.cfg */