(svn r17685) -Fix: autounpausing kept trying to unpause a loaded game that was paused due to an error. Just reject such savegames in dedicated servers.

This commit is contained in:
rubidium
2009-10-03 14:48:12 +00:00
parent 12a814f487
commit afed4330da
2 changed files with 7 additions and 1 deletions

View File

@@ -367,7 +367,7 @@ static uint NetworkCountActiveClients()
/* Check if the minimum number of active clients has been reached and pause or unpause the game as appropriate */
static void CheckMinActiveClients()
{
if (!_network_dedicated || _settings_client.network.min_active_clients == 0) return;
if (!_network_dedicated || _settings_client.network.min_active_clients == 0 || (_pause_mode & PM_PAUSED_ERROR) != 0) return;
if (NetworkCountActiveClients() < _settings_client.network.min_active_clients) {
if ((_pause_mode & PM_PAUSED_NORMAL) != 0) return;