(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.
authorrubidium
Tue, 20 Mar 2007 20:11:17 +0000
changeset 6673 c3f85858d5e5
parent 6672 1edb7a33f618
child 6674 64f4781b4653
(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.
src/network/network.cpp
--- a/src/network/network.cpp	Tue Mar 20 16:43:20 2007 +0000
+++ b/src/network/network.cpp	Tue Mar 20 20:11:17 2007 +0000
@@ -659,7 +659,7 @@
 
 	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) {