mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-06-20 15:39:25 +02:00
fix(Core/Travel): Preserve walk paths from taxi-path overwrite
This commit is contained in:
parent
c6c3079f26
commit
e3eb060106
@ -1772,6 +1772,13 @@ void TravelNodeMap::generateTaxiPaths()
|
|||||||
TravelNodePath travelPath(0.1f, totalTime, (uint8)TravelNodePathType::flightPath, i, true);
|
TravelNodePath travelPath(0.1f, totalTime, (uint8)TravelNodePathType::flightPath, i, true);
|
||||||
travelPath.setPath(ppath);
|
travelPath.setPath(ppath);
|
||||||
|
|
||||||
|
// Preserve existing walk paths — taxi-position lookup can resolve to
|
||||||
|
// a non-FM node (innkeeper, subzone), and overwriting its walk path
|
||||||
|
// with a flight path makes the walkable connection disappear.
|
||||||
|
if (startNode->hasPathTo(endNode) &&
|
||||||
|
startNode->getPathTo(endNode)->getPathType() == TravelNodePathType::walk)
|
||||||
|
continue;
|
||||||
|
|
||||||
startNode->setPathTo(endNode, travelPath);
|
startNode->setPathTo(endNode, travelPath);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user