Missing files for R197

This commit is contained in:
Mikko Mononen
2010-08-19 09:55:12 +00:00
parent 613d61f453
commit 55360f6ee5
26 changed files with 6902 additions and 1046 deletions
+5
View File
@@ -871,6 +871,7 @@ dtQueryState dtNavMeshQuery::updateSlicedFindPath(const int maxIter)
}
}
// Exhausted all nodes, but could not find path.
if (m_openList->empty())
m_query.state = DT_QUERY_READY;
@@ -880,7 +881,11 @@ dtQueryState dtNavMeshQuery::updateSlicedFindPath(const int maxIter)
int dtNavMeshQuery::finalizeSlicedFindPath(dtPolyRef* path, const int maxPathSize)
{
if (m_query.state != DT_QUERY_READY)
{
// Reset query.
memset(&m_query, 0, sizeof(dtQueryData));
return 0;
}
// Reverse the path.
dtAssert(m_query.lastBestNode);