don't create players for playable slots which are empty
This commit is contained in:
@@ -24,7 +24,10 @@ namespace OpenRA.Mods.RA
|
||||
int mapPlayerIndex = -1;
|
||||
|
||||
foreach (var kv in w.Map.Players)
|
||||
{
|
||||
{
|
||||
if (kv.Value.Playable)
|
||||
continue; // these will be created another way.
|
||||
|
||||
var player = new Player(w, kv.Value, mapPlayerIndex--);
|
||||
w.AddPlayer(player);
|
||||
Players.Add(kv.Key,player);
|
||||
|
||||
Reference in New Issue
Block a user