**API CHANGED** Implemented issue 124. Detour API returns error codes.

This commit is contained in:
Mikko Mononen
2010-10-29 12:08:13 +00:00
parent 30b581b67d
commit e5d603ac92
15 changed files with 1489 additions and 1540 deletions
+2 -1
View File
@@ -253,7 +253,8 @@ void CrowdTool::handleClick(const float* s, const float* p, bool shift)
dtNavMeshQuery* navquery = m_sample->getNavMeshQuery();
const dtQueryFilter* filter = m_crowd.getFilter();
const float* ext = m_crowd.getQueryExtents();
m_targetRef = navquery->findNearestPoly(p, ext, filter, m_targetPos);
navquery->findNearestPoly(p, ext, filter, &m_targetRef, m_targetPos);
if (shift)
{