Add World parameter to Target.FromOrder.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user