diff options
author | truelight <truelight@openttd.org> | 2005-03-30 08:50:34 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2005-03-30 08:50:34 +0000 |
commit | 9ebe54c1ae3d44af0ae0da52b0d0f22a18949d20 (patch) | |
tree | f25bef8ae3daf606d0c3e48b1f650069f13f816e | |
parent | afcfbdf85257e8a6ac7e8767863625d5f1b2aa73 (diff) | |
download | openttd-9ebe54c1ae3d44af0ae0da52b0d0f22a18949d20.tar.xz |
(svn r2108) -Fix: the server now also unpause when a client desyncs or something
-rw-r--r-- | network.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -515,12 +515,12 @@ void NetworkCloseClient(NetworkClientState *cs) SEND_COMMAND(PACKET_SERVER_ERROR_QUIT)(new_cs, cs->index, errorno); } } + } - /* When the client was PRE_ACTIVE, the server was in pause mode, so unpause */ - if (cs->status == STATUS_PRE_ACTIVE && _network_pause_on_join) { - DoCommandP(0, 0, 0, NULL, CMD_PAUSE); - NetworkServer_HandleChat(NETWORK_ACTION_CHAT, DESTTYPE_BROADCAST, 0, "Game unpaused", NETWORK_SERVER_INDEX); - } + /* When the client was PRE_ACTIVE, the server was in pause mode, so unpause */ + if (cs->status == STATUS_PRE_ACTIVE && _network_pause_on_join) { + DoCommandP(0, 0, 0, NULL, CMD_PAUSE); + NetworkServer_HandleChat(NETWORK_ACTION_CHAT, DESTTYPE_BROADCAST, 0, "Game unpaused", NETWORK_SERVER_INDEX); } closesocket(cs->socket); |