Remove Order.TargetLocation from building code.

This commit is contained in:
Paul Chote
2018-12-01 11:51:04 +00:00
parent 6dcd23e874
commit d91d96a2e3
2 changed files with 14 additions and 13 deletions

View File

@@ -88,7 +88,7 @@ namespace OpenRA.Mods.Common.Traits
public void ResolveOrder(Actor self, Order order)
{
if (order.OrderString == OrderID)
Location = order.TargetLocation;
Location = self.World.Map.CellContaining(order.Target.CenterPosition);
}
public static bool IsForceSet(Order order)