Increase height because Nexus Tower is tall

This commit is contained in:
David Markowitz 2023-08-06 16:06:12 -07:00
parent 8117773c56
commit 600f0974e7

View File

@ -549,8 +549,8 @@ void Zone::LoadPath(std::istream& file) {
// the waypoint is located near 0 height, // the waypoint is located near 0 height,
if (path.pathType == PathType::Movement) { if (path.pathType == PathType::Movement) {
if (dpWorld::Instance().IsLoaded()) { if (dpWorld::Instance().IsLoaded()) {
// 1000 should be large enough for every world. // 2000 should be large enough for every world.
waypoint.position.y = dpWorld::Instance().GetNavMesh()->GetHeightAtPoint(waypoint.position, 1000.0f); waypoint.position.y = dpWorld::Instance().GetNavMesh()->GetHeightAtPoint(waypoint.position, 2000.0f);
} }
} }
path.pathWaypoints.push_back(waypoint); path.pathWaypoints.push_back(waypoint);