summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-03-20 20:11:17 +0000
committerrubidium <rubidium@openttd.org>2007-03-20 20:11:17 +0000
commit80ef389080b0efb8fce77775ac09de40a65f617c (patch)
tree10a31fb6af94d0dd3ae20d08fed3aa4836b9a9e0 /src/network
parent8e3e055248277ec4239619360e64f9f098ba276f (diff)
downloadopenttd-80ef389080b0efb8fce77775ac09de40a65f617c.tar.xz
(svn r9378) -Fix [FS#688] (r9038): cancel in password queries reduces amount of players in the network game when they haven't joined the game yet.
Diffstat (limited to 'src/network')
-rw-r--r--src/network/network.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/network.cpp b/src/network/network.cpp
index 18fb31ec3..2484e2e7a 100644
--- a/src/network/network.cpp
+++ b/src/network/network.cpp
@@ -659,7 +659,7 @@ void NetworkCloseClient(NetworkTCPSocketHandler *cs)
if (_network_server) {
// We just lost one client :(
- if (cs->status > STATUS_INACTIVE) _network_game_info.clients_on--;
+ if (cs->status >= STATUS_AUTH) _network_game_info.clients_on--;
_network_clients_connected--;
while ((cs + 1) != DEREF_CLIENT(MAX_CLIENTS) && (cs + 1)->sock != INVALID_SOCKET) {