From 86ab6e7ed33f4567acd24d7af7a45c0789f8d8cf Mon Sep 17 00:00:00 2001 From: reaperrr Date: Tue, 11 Jul 2017 18:08:08 +0200 Subject: [PATCH] Fix MoveWithinRange subcell consideration --- OpenRA.Mods.Common/Activities/Move/MoveWithinRange.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Mods.Common/Activities/Move/MoveWithinRange.cs b/OpenRA.Mods.Common/Activities/Move/MoveWithinRange.cs index 0f68d0aa1b..418303fb63 100644 --- a/OpenRA.Mods.Common/Activities/Move/MoveWithinRange.cs +++ b/OpenRA.Mods.Common/Activities/Move/MoveWithinRange.cs @@ -48,7 +48,7 @@ namespace OpenRA.Mods.Common.Activities var minCells = minRange.Length / 1024; return map.FindTilesInAnnulus(targetPosition, minCells, maxCells) - .Where(c => AtCorrectRange(map.CenterOfCell(c))); + .Where(c => AtCorrectRange(map.CenterOfSubCell(c, Mobile.FromSubCell))); } bool AtCorrectRange(WPos origin)