Add World parameter to Target.FromOrder.

This commit is contained in:
Paul Chote
2013-09-17 21:46:03 +12:00
parent b52cdd4b45
commit e4ea012b9e
9 changed files with 10 additions and 10 deletions

View File

@@ -29,7 +29,7 @@ namespace OpenRA.Traits
public static Target FromPos(WPos p) { return new Target { pos = p, type = TargetType.Terrain }; }
public static Target FromCell(CPos c) { return new Target { pos = c.CenterPosition, type = TargetType.Terrain }; }
public static Target FromOrder(Order o)
public static Target FromOrder(World w, Order o)
{
return o.TargetActor != null
? FromActor(o.TargetActor)