Fix MoveWithinRange subcell consideration

This commit is contained in:
reaperrr
2017-07-11 18:08:08 +02:00
parent b859b9ee43
commit 86ab6e7ed3

View File

@@ -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)