Revert "feat(Core/Travel): Enable PathGenerator slope check on chained probe"

This reverts commit c8ca028ebef33c43fdae16f3ee3830396f3fbfd6.
This commit is contained in:
bash 2026-05-08 10:34:59 +02:00
parent e128bbb82e
commit 7ef7789c1c

View File

@ -730,14 +730,6 @@ std::vector<WorldPosition> WorldPosition::getPathStepFrom(WorldPosition startPos
// the previous step's endpoint, giving the 40-attempt walker // the previous step's endpoint, giving the 40-attempt walker
// its intended multi-tile reach. // its intended multi-tile reach.
PathGenerator path(pathUnit); PathGenerator path(pathUnit);
// Stricter walkability validation than navmesh extract alone: per-
// segment runtime check against the unit's collision-height climb
// formula. Detour may return paths up steep slopes that the
// walkable-slope-angle filter at extract time accepted but that the
// unit physically can't walk; SetSlopeCheck rejects those at
// pathfind time (returns DT_SLOPE_TOO_STEEP / shorter path).
// Engine uses this in FleeingMovementGenerator only.
path.SetSlopeCheck(true);
path.CalculatePath(startPos.GetPositionX(), startPos.GetPositionY(), startPos.GetPositionZ(), path.CalculatePath(startPos.GetPositionX(), startPos.GetPositionY(), startPos.GetPositionZ(),
GetPositionX(), GetPositionY(), GetPositionZ(), false); GetPositionX(), GetPositionY(), GetPositionZ(), false);