(svn r9380) [0.5] -Backport from trunk (r9378):

- Fix: cancel in password queries reduces amount of players in the network game when they haven't joined the game yet (r9378)
This commit is contained in:
rubidium 2007-03-20 20:36:45 +00:00
parent 64f7b3a059
commit 52a0d04473
1 changed files with 1 additions and 1 deletions

View File

@ -641,7 +641,7 @@ void NetworkCloseClient(NetworkClientState *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)->socket != INVALID_SOCKET) {