Mercurial > hg > openttd
changeset 11856:60c85a170bb1 draft
(svn r16250) -Fix (r16242): do not try to unpause when paused for a joining company
author | rubidium <rubidium@openttd.org> |
---|---|
date | Thu, 07 May 2009 17:08:41 +0000 |
parents | 8388a8a711b9 |
children | 3870525e843b |
files | src/network/network.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/network/network.cpp +++ b/src/network/network.cpp @@ -356,7 +356,7 @@ DoCommandP(0, PM_PAUSED_NORMAL, 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_UNPAUSED) return; + if ((_pause_mode & PM_PAUSED_NORMAL) == 0) return; DoCommandP(0, PM_PAUSED_NORMAL, 0, CMD_PAUSE); NetworkServerSendChat(NETWORK_ACTION_SERVER_MESSAGE, DESTTYPE_BROADCAST, 0, "", CLIENT_ID_SERVER, NETWORK_SERVER_MESSAGE_GAME_UNPAUSED_PLAYERS);