From 517eda03f13a257de6584e9ec282d2529ddc5dc6 Mon Sep 17 00:00:00 2001 From: mostlikely4r Date: Tue, 22 Oct 2024 15:39:14 +0200 Subject: [PATCH] -Nodegen improvement: Stop creating helpernodes between two linked nodes when the path used only worked in one direction. --- playerbot/TravelNode.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/playerbot/TravelNode.cpp b/playerbot/TravelNode.cpp index 514979f3..11ed9351 100644 --- a/playerbot/TravelNode.cpp +++ b/playerbot/TravelNode.cpp @@ -2473,6 +2473,11 @@ void TravelNodeMap::generateHelperNodes(uint32 mapId) if (node->getPosition()->canPathTo(pos.first, nullptr)) // continue; + TravelNode* otherNode = getNode(pos.first, nullptr, 1.0f); + + if (otherNode && node->hasLinkTo(otherNode)) + continue; + for (auto& path : *node->getPaths()) { WorldPosition prevPoint;