Skip to content

Commit

Permalink
-Nodegen improvement: Stop creating helpernodes between two linked no…
Browse files Browse the repository at this point in the history
…des when the path used only worked in one direction.
  • Loading branch information
mostlikely4r committed Oct 22, 2024
1 parent dd99cc2 commit 517eda0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions playerbot/TravelNode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 517eda0

Please sign in to comment.