From e3a245369e20787503eabfded7d1de5ed9a46c60 Mon Sep 17 00:00:00 2001 From: truelight Date: Fri, 22 Jun 2007 22:15:49 +0000 Subject: [PATCH] (svn r10285) [0.5] -Backport from trunk (r10284): - Fix: don't make everyone spectator if 1 joining client failed to create new company (r10284) --- players.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/players.c b/players.c index 3327408045..42b2dcabe3 100644 --- a/players.c +++ b/players.c @@ -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; }