Files
OpenRA/OpenRA.Mods.Common
RoosterDragon d8ebb96077 HPF handles searches from unreachable source cells into cut off areas.
If a path search is performed by the HierarchicalPathFinder when the source cell is unreachable location, a path is still allowed and starts from one of the cells adjacent to the location. If moving into one of these cells results in the actor moving into an isolated area that cannot reach the target this would previously crash as no abstract path could be found. Now we handle such locations by giving them a unreachable cost so the path search will not attempt to explore them.

Imagine a map split into two by a one tile wide line of impassable cliffs. If an actor is on top of these cliffs it is allowed to path because it can "jump off" the cliff and move into the cell immediately either side of it. However it is important which side it chooses to jump into, as one it has moved off the cliff it loses access to the other side. The previous error came about because the path might try and search on the side that couldn't reach the target location. Now we avoid that being considered.
2022-12-20 09:47:24 +13:00
..
2022-12-19 22:04:54 +13:00
2022-05-28 00:35:10 -05:00
2022-09-02 14:41:24 +03:00
2022-12-19 22:04:54 +13:00
2022-05-28 00:35:10 -05:00
2022-12-19 22:04:54 +13:00
2022-05-28 00:35:10 -05:00
2022-05-28 00:35:10 -05:00
2022-05-28 00:35:10 -05:00
2022-05-28 00:35:10 -05:00