Cells with Temporary blockers should not exit early in locomotor cache

This commit is contained in:
teinarss
2019-08-18 15:37:06 +02:00
committed by abcdefg30
parent 345905bf68
commit 7544d4b4e6

View File

@@ -278,8 +278,8 @@ namespace OpenRA.Mods.Common.Traits
if (cellCache.Crushable.Overlaps(actor.Owner.PlayerMask))
return true;
// Cache doesn't account for ignored actors - these must use the slow path
if (ignoreActor == null)
// Cache doesn't account for ignored actors or temporary blockers - these must use the slow path.
if (ignoreActor == null && !cellFlag.HasCellFlag(CellFlag.HasTemporaryBlocker))
{
// We are blocked by another actor in the cell.
if (cellCache.Blocking.Overlaps(actor.Owner.PlayerMask))