Now that we're on .NET 4 again, reintroduce optional parameter for RegisterNewSquad

This commit is contained in:
ScottNZ
2014-06-14 02:07:47 +12:00
parent 5e641750aa
commit 23f0e00bcc

View File

@@ -505,16 +505,12 @@ namespace OpenRA.Mods.RA.AI
return squads.FirstOrDefault(s => s.type == type);
}
Squad RegisterNewSquad(SquadType type, Actor target)
Squad RegisterNewSquad(SquadType type, Actor target = null)
{
var ret = new Squad(this, type, target);
squads.Add(ret);
return ret;
}
Squad RegisterNewSquad(SquadType type)
{
return RegisterNewSquad(type, null);
}
int assignRolesTicks = 0;
int rushTicks = 0;