From 088537277c28ce164878cd52bf82cd0e6f83e5d1 Mon Sep 17 00:00:00 2001 From: bash Date: Thu, 14 May 2026 21:19:28 +0200 Subject: [PATCH] feat(Core/Travel): Hardcode 50y travelnode threshold --- src/Ai/World/Rpg/Action/NewRpgBaseAction.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Ai/World/Rpg/Action/NewRpgBaseAction.cpp b/src/Ai/World/Rpg/Action/NewRpgBaseAction.cpp index d8ba2774a..f4dafb69a 100644 --- a/src/Ai/World/Rpg/Action/NewRpgBaseAction.cpp +++ b/src/Ai/World/Rpg/Action/NewRpgBaseAction.cpp @@ -147,12 +147,13 @@ bool NewRpgBaseAction::MoveFarTo(WorldPosition dest) // 3. Else: 40-step chained mmap probe + regression guard. // 4. Empty / non-progressing probe: single-waypoint MoveTo. // - // needsLongPath gate — cross-map or > sightDistance go to graph. + // needsLongPath gate — cross-map or > 50y go to graph. // BG gating: graph holds open-world routes only. + constexpr float TRAVELNODE_THRESHOLD = 50.0f; bool tryNodes = sPlayerbotAIConfig.enableTravelNodes && !bot->InBattleground() && ((bot->GetMapId() != dest.GetMapId()) || - (dis > sPlayerbotAIConfig.sightDistance)); + (dis > TRAVELNODE_THRESHOLD)); // If a node plan is already active, ride it — but only if its // destination still matches the requested dest. Otherwise the