mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-12-25 06:53:35 +00:00
Merge branch 'movementAiPathing' into moreMovementAi
This commit is contained in:
commit
20b2a62932
@ -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