Check terrain cost when testing pathable cells.

This commit is contained in:
Paul Chote
2016-08-06 19:01:04 +01:00
parent 6f75ddc823
commit bb0fda41d2

View File

@@ -220,7 +220,7 @@ namespace OpenRA.Mods.Common.Activities
var containsTemporaryBlocker = WorldUtils.ContainsTemporaryBlocker(self.World, nextCell, self); var containsTemporaryBlocker = WorldUtils.ContainsTemporaryBlocker(self.World, nextCell, self);
// Next cell in the move is blocked by another actor // Next cell in the move is blocked by another actor
if (containsTemporaryBlocker || !mobile.CanMoveFreelyInto(nextCell, ignoredActor, true)) if (containsTemporaryBlocker || !mobile.CanEnterCell(nextCell, ignoredActor, true))
{ {
// Are we close enough? // Are we close enough?
var cellRange = nearEnough.Length / 1024; var cellRange = nearEnough.Length / 1024;