From c08c10f32928d81ef83a00f55119f1bc609b6a54 Mon Sep 17 00:00:00 2001 From: rubidium Date: Thu, 12 Nov 2009 17:27:24 +0000 Subject: (svn r18048) -Change: make no distinction between unpausing because of a client aborting to join or actually joining --- src/network/network.cpp | 2 +- src/network/network_type.h | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'src/network') diff --git a/src/network/network.cpp b/src/network/network.cpp index 46cf1a4bb..d2af1f24a 100644 --- a/src/network/network.cpp +++ b/src/network/network.cpp @@ -488,7 +488,7 @@ void NetworkCloseClient(NetworkClientSocket *cs, bool error) /* When the client was PRE_ACTIVE, the server was in pause mode, so unpause */ if (cs->status == STATUS_PRE_ACTIVE && (_pause_mode & PM_PAUSED_JOIN)) { DoCommandP(0, PM_PAUSED_JOIN, 0, CMD_PAUSE); - NetworkServerSendChat(NETWORK_ACTION_SERVER_MESSAGE, DESTTYPE_BROADCAST, 0, "", CLIENT_ID_SERVER, NETWORK_SERVER_MESSAGE_GAME_UNPAUSED_CONNECT_FAIL); + NetworkServerSendChat(NETWORK_ACTION_SERVER_MESSAGE, DESTTYPE_BROADCAST, 0, "", CLIENT_ID_SERVER, NETWORK_SERVER_MESSAGE_GAME_UNPAUSED_CONNECT); } if (_network_server) { diff --git a/src/network/network_type.h b/src/network/network_type.h index 512eebb1e..0daaca0e0 100644 --- a/src/network/network_type.h +++ b/src/network/network_type.h @@ -90,9 +90,8 @@ enum NetworkAction { enum NetworkServerMessage { NETWORK_SERVER_MESSAGE_GAME_PAUSED_PLAYERS, ///< Game paused (not enough players) NETWORK_SERVER_MESSAGE_GAME_UNPAUSED_PLAYERS, ///< Game unpaused (enough players) - NETWORK_SERVER_MESSAGE_GAME_PAUSED_CONNECT, ///< Game paused (connecting client) - NETWORK_SERVER_MESSAGE_GAME_UNPAUSED_CONNECT, ///< Game unpaused (client connected) - NETWORK_SERVER_MESSAGE_GAME_UNPAUSED_CONNECT_FAIL, ///< Game unpaused (client failed to connect) + NETWORK_SERVER_MESSAGE_GAME_PAUSED_CONNECT, ///< Game paused (connecting clients) + NETWORK_SERVER_MESSAGE_GAME_UNPAUSED_CONNECT, ///< Game unpaused (no connecting clients) NETWORK_SERVER_MESSAGE_END }; -- cgit v1.2.3-70-g09d2