summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-11-12 17:46:04 +0000
committerrubidium <rubidium@openttd.org>2009-11-12 17:46:04 +0000
commit934e6a295d16055d1bcc6ffbbdf6f2b89d36bbe6 (patch)
tree94da67a98e4fecae63cb9b7e9731179ec95d334c /src/network
parent3f2dce581ea4ad3a07ab8ecc43f1acb29ef680ee (diff)
downloadopenttd-934e6a295d16055d1bcc6ffbbdf6f2b89d36bbe6.tar.xz
(svn r18051) -Codechange: make the active clients pause use a separate bit in the pause mode
Diffstat (limited to 'src/network')
-rw-r--r--src/network/network.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/network/network.cpp b/src/network/network.cpp
index d2af1f24a..957e764fe 100644
--- a/src/network/network.cpp
+++ b/src/network/network.cpp
@@ -377,14 +377,14 @@ static void CheckMinActiveClients()
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;
+ if ((_pause_mode & PM_PAUSED_ACTIVE_CLIENTS) != 0) return;
- DoCommandP(0, PM_PAUSED_NORMAL, 1, CMD_PAUSE);
+ DoCommandP(0, PM_PAUSED_ACTIVE_CLIENTS, 1, CMD_PAUSE);
NetworkServerSendChat(NETWORK_ACTION_SERVER_MESSAGE, DESTTYPE_BROADCAST, 0, "", CLIENT_ID_SERVER, NETWORK_SERVER_MESSAGE_GAME_PAUSED_PLAYERS);
} else {
- if ((_pause_mode & PM_PAUSED_NORMAL) == 0) return;
+ if ((_pause_mode & PM_PAUSED_ACTIVE_CLIENTS) == 0) return;
- DoCommandP(0, PM_PAUSED_NORMAL, 0, CMD_PAUSE);
+ DoCommandP(0, PM_PAUSED_ACTIVE_CLIENTS, 0, CMD_PAUSE);
NetworkServerSendChat(NETWORK_ACTION_SERVER_MESSAGE, DESTTYPE_BROADCAST, 0, "", CLIENT_ID_SERVER, NETWORK_SERVER_MESSAGE_GAME_UNPAUSED_PLAYERS);
}
}