Remove Order.TargetLocation from Carryall.

This commit is contained in:
Paul Chote
2018-12-01 12:00:13 +00:00
parent a5c89c2edc
commit 4c6f4f97d5

View File

@@ -245,12 +245,11 @@ namespace OpenRA.Mods.Common.Traits
{
if (order.OrderString == "DeliverUnit")
{
var cell = self.World.Map.Clamp(order.TargetLocation);
var cell = self.World.Map.Clamp(self.World.Map.CellContaining(order.Target.CenterPosition));
if (!aircraftInfo.MoveIntoShroud && !self.Owner.Shroud.IsExplored(cell))
return;
var targetLocation = move.NearestMoveableCell(order.TargetLocation);
var targetLocation = move.NearestMoveableCell(cell);
self.SetTargetLine(Target.FromCell(self.World, targetLocation), Color.Yellow);
self.QueueActivity(order.Queued, new DeliverUnit(self, targetLocation));
}