**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

View File

@@ -421,7 +421,7 @@ void duDebugDrawNavMeshPoly(duDebugDraw* dd, const dtNavMesh& mesh, dtPolyRef re
const dtMeshTile* tile = 0;
const dtPoly* poly = 0;
if (!mesh.getTileAndPolyByRef(ref, &tile, &poly))
if (mesh.getTileAndPolyByRef(ref, &tile, &poly) != DT_SUCCESS)
return;
dd->depthMask(false);