From 4882c7c25b9a012dc324351dd48d05f2d4447c88 Mon Sep 17 00:00:00 2001 From: bash Date: Sun, 17 May 2026 01:04:13 +0200 Subject: [PATCH] chore(Core/RPG): Loosen Z-mismatch threshold from 5y to 10y --- src/Ai/World/Rpg/Action/NewRpgBaseAction.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Ai/World/Rpg/Action/NewRpgBaseAction.cpp b/src/Ai/World/Rpg/Action/NewRpgBaseAction.cpp index 3072b8418..ef8107d17 100644 --- a/src/Ai/World/Rpg/Action/NewRpgBaseAction.cpp +++ b/src/Ai/World/Rpg/Action/NewRpgBaseAction.cpp @@ -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(),