Bunch of refactoring and walking, AI needs a ton of tweaking to use the new logic

This commit is contained in:
KimLS
2018-10-12 00:03:58 -07:00
parent 29ea65a71e
commit 1785120796
17 changed files with 787 additions and 474 deletions
+2 -2
View File
@@ -134,7 +134,7 @@ IPathfinder::IPath PathfinderNavmesh::FindRoute(const glm::vec3 &start, const gl
glm::vec3 PathfinderNavmesh::GetRandomLocation()
{
if (!m_impl->nav_mesh) {
return glm::vec3();
return glm::vec3(0.f);
}
if (!m_impl->query) {
@@ -155,7 +155,7 @@ glm::vec3 PathfinderNavmesh::GetRandomLocation()
return glm::vec3(point[0], point[2], point[1]);
}
return glm::vec3();
return glm::vec3(0.f);
}
void PathfinderNavmesh::DebugCommand(Client *c, const Seperator *sep)