mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-14 20:28:21 +00:00
Increase height because Nexus Tower is tall
This commit is contained in:
parent
8117773c56
commit
600f0974e7
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user