summaryrefslogtreecommitdiff
path: root/network.c
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2005-03-30 08:50:34 +0000
committertruelight <truelight@openttd.org>2005-03-30 08:50:34 +0000
commitd97ff671299e679cef8c722fa2c024d6c45315ba (patch)
treef25bef8ae3daf606d0c3e48b1f650069f13f816e /network.c
parente7937998d693237711d39dd150a5cdef794a3dcb (diff)
downloadopenttd-d97ff671299e679cef8c722fa2c024d6c45315ba.tar.xz
(svn r2108) -Fix: the server now also unpause when a client desyncs or something
Diffstat (limited to 'network.c')
-rw-r--r--network.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/network.c b/network.c
index 9e9b92fa6..bd31016b1 100644
--- a/network.c
+++ b/network.c
@@ -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);