Replace WPos.ToCPos -> Map.CellContaining.
This commit is contained in:
4
OpenRA.Mods.RA/RallyPoint.cs
Executable file → Normal file
4
OpenRA.Mods.RA/RallyPoint.cs
Executable file → Normal file
@@ -41,7 +41,7 @@ namespace OpenRA.Mods.RA
|
||||
public Order IssueOrder( Actor self, IOrderTargeter order, Target target, bool queued )
|
||||
{
|
||||
if (order.OrderID == "SetRallyPoint")
|
||||
return new Order(order.OrderID, self, false) { TargetLocation = target.CenterPosition.ToCPos(), SuppressVisualFeedback = true };
|
||||
return new Order(order.OrderID, self, false) { TargetLocation = self.World.Map.CellContaining(target.CenterPosition), SuppressVisualFeedback = true };
|
||||
|
||||
return null;
|
||||
}
|
||||
@@ -62,7 +62,7 @@ namespace OpenRA.Mods.RA
|
||||
if (target.Type != TargetType.Terrain)
|
||||
return false;
|
||||
|
||||
var location = target.CenterPosition.ToCPos();
|
||||
var location = self.World.Map.CellContaining(target.CenterPosition);
|
||||
if (self.World.Map.Contains(location))
|
||||
{
|
||||
cursor = "ability";
|
||||
|
||||
Reference in New Issue
Block a user