mirror of https://github.com/OpenTTD/OpenTTD.git
(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:
parent
64f7b3a059
commit
52a0d04473
|
@ -641,7 +641,7 @@ void NetworkCloseClient(NetworkClientState *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)->socket != INVALID_SOCKET) {
|
while ((cs + 1) != DEREF_CLIENT(MAX_CLIENTS) && (cs + 1)->socket != INVALID_SOCKET) {
|
||||||
|
|
Loading…
Reference in New Issue