Replace WPos.ToCPos -> Map.CellContaining.
This commit is contained in:
@@ -260,7 +260,7 @@ namespace OpenRA.Mods.RA
|
||||
return new Order(order.OrderID, self, queued) { TargetActor = target.Actor };
|
||||
|
||||
if (order.OrderID == "Harvest")
|
||||
return new Order(order.OrderID, self, queued) { TargetLocation = target.CenterPosition.ToCPos() };
|
||||
return new Order(order.OrderID, self, queued) { TargetLocation = self.World.Map.CellContaining(target.CenterPosition) };
|
||||
|
||||
return null;
|
||||
}
|
||||
@@ -437,7 +437,7 @@ namespace OpenRA.Mods.RA
|
||||
if (modifiers.HasModifier(TargetModifiers.ForceMove))
|
||||
return false;
|
||||
|
||||
var location = target.CenterPosition.ToCPos();
|
||||
var location = self.World.Map.CellContaining(target.CenterPosition);
|
||||
// Don't leak info about resources under the shroud
|
||||
if (!self.Owner.Shroud.IsExplored(location))
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user