(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 ;))

replace/41b28d7194a279bdc17475d4fbe2ea6ec885a466
truelight 18 years ago
parent a56661fcc1
commit cc6ee1840a

@ -840,12 +840,10 @@ CommandCost 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_SPECATOR) {
_network_playas = PLAYER_SPECTATOR;
SetLocalPlayer(PLAYER_SPECTATOR);
}
#endif /* ENABLE_NETWORK */
break;
}

Loading…
Cancel
Save