From e1e3d99a79d12cf38976fa66b9d7af63bd7d024c Mon Sep 17 00:00:00 2001 From: Noudess Date: Fri, 12 Apr 2019 20:13:30 -0400 Subject: [PATCH] Change range of values to accomodate large roamboxes --- zone/pathfinder_nav_mesh.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zone/pathfinder_nav_mesh.cpp b/zone/pathfinder_nav_mesh.cpp index d4879f6f7..8ab50d508 100644 --- a/zone/pathfinder_nav_mesh.cpp +++ b/zone/pathfinder_nav_mesh.cpp @@ -163,7 +163,7 @@ IPathfinder::IPath PathfinderNavmesh::FindPath(const glm::vec3 &start, const glm static const int max_polys = 256; dtPolyRef start_ref; dtPolyRef end_ref; - glm::vec3 ext(5.0f, 100.0f, 5.0f); + glm::vec3 ext(10.0f, 200.0f, 10.0f); m_impl->query->findNearestPoly(¤t_location[0], &ext[0], &filter, &start_ref, 0); m_impl->query->findNearestPoly(&dest_location[0], &ext[0], &filter, &end_ref, 0);