add PlayerReference.DefaultStartingUnits flag (set for autogenerated playerrefs; don't set this if you have custom stuff.
This commit is contained in:
@@ -19,7 +19,8 @@ namespace OpenRA.FileFormats
|
|||||||
public string Race;
|
public string Race;
|
||||||
public bool OwnsWorld = false;
|
public bool OwnsWorld = false;
|
||||||
public bool NonCombatant = false;
|
public bool NonCombatant = false;
|
||||||
public bool Playable = false;
|
public bool Playable = false;
|
||||||
|
public bool DefaultStartingUnits = false;
|
||||||
public Color Color = Color.FromArgb(238,238,238);
|
public Color Color = Color.FromArgb(238,238,238);
|
||||||
public Color Color2 = Color.FromArgb(44,28,24);
|
public Color Color2 = Color.FromArgb(44,28,24);
|
||||||
|
|
||||||
|
|||||||
@@ -176,7 +176,13 @@ namespace OpenRA
|
|||||||
{
|
{
|
||||||
for (int index = 0; index < Waypoints.Count; index++)
|
for (int index = 0; index < Waypoints.Count; index++)
|
||||||
{
|
{
|
||||||
var p = new PlayerReference("Multi{0}".F(index), "Random", false, false) { Playable = true };
|
var p = new PlayerReference
|
||||||
|
{
|
||||||
|
Name = "Multi{0}".F(index),
|
||||||
|
Race = "Random",
|
||||||
|
Playable = true,
|
||||||
|
DefaultStartingUnits = true
|
||||||
|
};
|
||||||
Players.Add(p.Name, p);
|
Players.Add(p.Name, p);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user