From 7544d4b4e6efe5183dc43caa59b13e621d173072 Mon Sep 17 00:00:00 2001 From: teinarss Date: Sun, 18 Aug 2019 15:37:06 +0200 Subject: [PATCH] Cells with Temporary blockers should not exit early in locomotor cache --- OpenRA.Mods.Common/Traits/World/Locomotor.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenRA.Mods.Common/Traits/World/Locomotor.cs b/OpenRA.Mods.Common/Traits/World/Locomotor.cs index 697487b01f..3dc20aba7e 100644 --- a/OpenRA.Mods.Common/Traits/World/Locomotor.cs +++ b/OpenRA.Mods.Common/Traits/World/Locomotor.cs @@ -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))