Fix Out of sync caused by Locomotor cache

This commit is contained in:
teinarss
2019-08-10 21:29:40 +02:00
committed by abcdefg30
parent 859d01da7d
commit ff1d4ec9ae

View File

@@ -304,7 +304,7 @@ namespace OpenRA.Mods.Common.Traits
if (check.HasCellCondition(CellConditions.TransientActors)) if (check.HasCellCondition(CellConditions.TransientActors))
{ {
Func<Actor, bool> checkTransient = otherActor => IsBlockedBy(self, otherActor, ignoreActor, check, blockingCache[cell].CellFlag); Func<Actor, bool> checkTransient = otherActor => IsBlockedBy(self, otherActor, ignoreActor, check, GetCache(cell).CellFlag);
if (!sharesCell) if (!sharesCell)
return world.ActorMap.AnyActorsAt(cell, SubCell.FullCell, checkTransient) ? SubCell.Invalid : SubCell.FullCell; return world.ActorMap.AnyActorsAt(cell, SubCell.FullCell, checkTransient) ? SubCell.Invalid : SubCell.FullCell;