mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r10285) [0.5] -Backport from trunk (r10284):
- Fix: don't make everyone spectator if 1 joining client failed to create new company (r10284)
This commit is contained in:
parent
71347cae43
commit
e3a245369e
|
@ -863,12 +863,10 @@ int32 CmdPlayerCtrl(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
|
|||
NetworkClientInfo *ci = &_network_client_info[cid];
|
||||
ci->client_playas = PLAYER_SPECTATOR;
|
||||
NetworkUpdateClientInfo(ci->client_index);
|
||||
} else
|
||||
#endif /* ENABLE_NETWORK */
|
||||
{
|
||||
} else if (_local_player == PLAYER_SPECTATOR) {
|
||||
_network_playas = PLAYER_SPECTATOR;
|
||||
SetLocalPlayer(PLAYER_SPECTATOR);
|
||||
}
|
||||
#endif /* ENABLE_NETWORK */
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue