diff options
author | rubidium <rubidium@openttd.org> | 2007-03-20 20:11:17 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-03-20 20:11:17 +0000 |
commit | 80ef389080b0efb8fce77775ac09de40a65f617c (patch) | |
tree | 10a31fb6af94d0dd3ae20d08fed3aa4836b9a9e0 /src | |
parent | 8e3e055248277ec4239619360e64f9f098ba276f (diff) | |
download | openttd-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')
-rw-r--r-- | src/network/network.cpp | 2 |
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) { |