chore(Core/RPG): Loosen Z-mismatch threshold from 5y to 10y

This commit is contained in:
bash 2026-05-17 01:04:13 +02:00
parent d3e73cc0c0
commit 4882c7c25b

View File

@ -226,7 +226,9 @@ bool NewRpgBaseAction::MoveFarTo(WorldPosition dest)
// polygon graph toward an elevated target it can't reach
// (quest giver on top of Aldrassil etc.). Refuse to dispatch
// — bot waits instead of tunneling into the visual model.
if (std::fabs(stepDest.GetPositionZ() - dest.GetPositionZ()) > 5.0f)
// 10y tolerates normal terrain variation (ramp ends, hill
// tops) while still catching clearly unreachable elevations.
if (std::fabs(stepDest.GetPositionZ() - dest.GetPositionZ()) > 10.0f)
{
EmitDebugMove("MoveFar", "z-mismatch",
dest.GetPositionX(), dest.GetPositionY(),