(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.

This commit is contained in:
rubidium 2007-03-20 20:11:17 +00:00
parent 8e3e055248
commit 80ef389080
1 changed files with 1 additions and 1 deletions

View File

@ -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) {