another ctor removed

This commit is contained in:
Chris Forbes
2010-11-23 15:20:11 +13:00
parent 490b0801a0
commit 23e6eada26
12 changed files with 17 additions and 17 deletions

View File

@@ -60,8 +60,6 @@ namespace OpenRA
public Order(string orderString, Actor subject, bool queued)
: this(orderString, subject, null, int2.Zero, null, queued, int2.Zero) { }
public Order(string orderString, Actor subject, int2 targetLocation, bool queued)
: this(orderString, subject, null, targetLocation, null, queued, int2.Zero) { }
public Order(string orderString, Actor subject, string targetString, bool queued)
: this(orderString, subject, null, int2.Zero, targetString, queued, int2.Zero) { }
public Order(string orderString, Actor subject, Actor targetActor, int2 targetLocation, bool queued)

View File

@@ -61,7 +61,7 @@ namespace OpenRA.Orders
{
world.CancelInputMode();
foreach (var subject in subjects)
yield return new Order(order, subject, xy, false);
yield return new Order(order, subject, false) { TargetLocation = xy };
}
}

View File

@@ -139,7 +139,7 @@ namespace OpenRA.Widgets.Delegates
var nextStance = GetNextStance((Stance)Enum.Parse(typeof(Stance), bw.Text));
world.IssueOrder(new Order("SetStance", world.LocalPlayer.PlayerActor,
new int2(p.Index, (int)nextStance), false));
false) { TargetLocation = new int2(p.Index, (int)nextStance) });
bw.Text = nextStance.ToString();
}