add PlayerReference.DefaultStartingUnits flag (set for autogenerated playerrefs; don't set this if you have custom stuff.

This commit is contained in:
Chris Forbes
2010-08-25 18:28:36 +12:00
parent def0580078
commit cfc937e8eb
2 changed files with 9 additions and 2 deletions

View File

@@ -176,7 +176,13 @@ namespace OpenRA
{
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);
}
}