chore(Core/Travel): Bump 2-point shortcut threshold to 75y

This commit is contained in:
bash 2026-05-18 01:11:12 +02:00
parent e8b4461d33
commit 3c8659a6e4

View File

@ -757,7 +757,8 @@ std::vector<WorldPosition> WorldPosition::getPathStepFrom(WorldPosition startPos
// partway through — effectively a teleport across whatever lies
// between. Reject long 2-point segments to avoid the chained
// probe accepting a 1000y+ "shortcut" as a valid path step.
if (retvec.size() == 2 && retvec.front().distance(&retvec.back()) > 50.0f)
// 75y matches the nodeFirstDis travelnode threshold elsewhere.
if (retvec.size() == 2 && retvec.front().distance(&retvec.back()) > 75.0f)
return {};
// Underwater path-extension. When PATHFIND_INCOMPLETE ends within