mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +00:00
(svn r10284) -Fix [FS#899]: in the unlucky event 2 clients join at the same time to start a new company while there is only one spot left, all clients became spectator. Now only make either one of the joining clients spectator (much more game-friendly ;))
This commit is contained in:
parent
a56661fcc1
commit
cc6ee1840a
@ -840,12 +840,10 @@ CommandCost CmdPlayerCtrl(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
|
|||||||
NetworkClientInfo *ci = &_network_client_info[cid];
|
NetworkClientInfo *ci = &_network_client_info[cid];
|
||||||
ci->client_playas = PLAYER_SPECTATOR;
|
ci->client_playas = PLAYER_SPECTATOR;
|
||||||
NetworkUpdateClientInfo(ci->client_index);
|
NetworkUpdateClientInfo(ci->client_index);
|
||||||
} else
|
} else if (_local_player == PLAYER_SPECATOR) {
|
||||||
#endif /* ENABLE_NETWORK */
|
|
||||||
{
|
|
||||||
_network_playas = PLAYER_SPECTATOR;
|
_network_playas = PLAYER_SPECTATOR;
|
||||||
SetLocalPlayer(PLAYER_SPECTATOR);
|
|
||||||
}
|
}
|
||||||
|
#endif /* ENABLE_NETWORK */
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user