dddooozzz9 / recastnavigation

Automatically exported from code.google.com/p/recastnavigation
zlib License
1 stars 0 forks source link

updateSlicedFindPath returns success when open list expires #212

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
In DetourNavMeshQuery.cpp, function dtNavMeshQuery::updateSlicedFindPath:

   // Exhausted all nodes, but could not find path.
   if (m_openList->empty())
   {
      const dtStatus details = m_query.status & DT_STATUS_DETAIL_MASK;
      m_query.status = DT_SUCCESS | details;
   }

Surely, the status should be DT_FAILURE?

Original issue reported on code.google.com by dan.buckmaster on 13 Jul 2012 at 1:40

GoogleCodeExporter commented 8 years ago
It should return true with partial result flag set.

Original comment by memono...@gmail.com on 13 Jul 2012 at 1:43

GoogleCodeExporter commented 8 years ago

Original comment by memono...@gmail.com on 16 Sep 2013 at 7:10