Files
OpenRA/OpenRA.Mods.Common
RoosterDragon faf12f93a4 Fix Locomotor cache coherency for disabled or paused mobile actors.
The cache in Locomotor that is populated via the UpdateCellBlocking method disagreed with the non-cached logic of IsBlockedBy when dealing with Mobile actors. The cache determined an actor to be moving if it was both movable and had horizontal movement types. IsBlockedBy determined an actor to be moving if it had horizontal movement types, but did not check if it was movable. This difference in checks could allow a mobile trait that was disabled or paused and which had horizontal movement to be treated differently be the two methods. UpdateCellBlocking would consider it not moving due to the disabled/paused trait. IsBlockedBy would consider it moving as it didn't care about the disabled/paused state of the trait.

Now, we unify the two methods to consider a mobile trait that is disabled/paused as not moving. This prevents HierarchicalPathFinder from crashing on the inconsistent state, i.e. when asked to path search through a cell of a mobile unit which has disabled or paused movement, but which has horizontal movement types from prior movement.
2023-01-17 18:58:22 +01:00
..
2023-01-11 11:58:54 +02:00
2023-01-11 11:58:54 +02:00
2023-01-11 11:58:54 +02:00
2023-01-11 11:58:54 +02:00
2023-01-11 11:58:54 +02:00
2023-01-11 11:58:54 +02:00
2023-01-11 11:58:54 +02:00
2023-01-11 11:58:54 +02:00