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 6ab59e61a9
commit 727232fe80

View File

@ -226,7 +226,9 @@ bool NewRpgBaseAction::MoveFarTo(WorldPosition dest)
// polygon graph toward an elevated target it can't reach // polygon graph toward an elevated target it can't reach
// (quest giver on top of Aldrassil etc.). Refuse to dispatch // (quest giver on top of Aldrassil etc.). Refuse to dispatch
// — bot waits instead of tunneling into the visual model. // — 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", EmitDebugMove("MoveFar", "z-mismatch",
dest.GetPositionX(), dest.GetPositionY(), dest.GetPositionX(), dest.GetPositionY(),