mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-07 06:46:43 +00:00
(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:
parent
8e3e055248
commit
80ef389080
@ -659,7 +659,7 @@ void NetworkCloseClient(NetworkTCPSocketHandler *cs)
|
|||||||
|
|
||||||
if (_network_server) {
|
if (_network_server) {
|
||||||
// We just lost one client :(
|
// 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--;
|
_network_clients_connected--;
|
||||||
|
|
||||||
while ((cs + 1) != DEREF_CLIENT(MAX_CLIENTS) && (cs + 1)->sock != INVALID_SOCKET) {
|
while ((cs + 1) != DEREF_CLIENT(MAX_CLIENTS) && (cs + 1)->sock != INVALID_SOCKET) {
|
||||||
|
Loading…
Reference in New Issue
Block a user