mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-06-20 15:39:25 +02:00
chore(Core/Travel): Bump 2-point shortcut threshold to 75y
This commit is contained in:
parent
cb442e8461
commit
bb69ed12d6
@ -757,7 +757,8 @@ std::vector<WorldPosition> WorldPosition::getPathStepFrom(WorldPosition startPos
|
|||||||
// partway through — effectively a teleport across whatever lies
|
// partway through — effectively a teleport across whatever lies
|
||||||
// between. Reject long 2-point segments to avoid the chained
|
// between. Reject long 2-point segments to avoid the chained
|
||||||
// probe accepting a 1000y+ "shortcut" as a valid path step.
|
// 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 {};
|
return {};
|
||||||
|
|
||||||
// Underwater path-extension. When PATHFIND_INCOMPLETE ends within
|
// Underwater path-extension. When PATHFIND_INCOMPLETE ends within
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user