Removed closed list coloring from crowd tool. Fixed navmesh draw flags in navmesh tester.

This commit is contained in:
Mikko Mononen
2010-10-01 08:41:36 +00:00
parent c11a3a950e
commit b6308d8908
9 changed files with 565 additions and 141 deletions

View File

@@ -248,12 +248,14 @@ void duDebugDrawNavMesh(duDebugDraw* dd, const dtNavMesh& mesh, unsigned char fl
void duDebugDrawNavMeshWithClosedList(struct duDebugDraw* dd, const dtNavMesh& mesh, const dtNavMeshQuery& query, unsigned char flags)
{
if (!dd) return;
const dtNavMeshQuery* q = (flags & DU_DRAWNAVMESH_CLOSEDLIST) ? &query : 0;
for (int i = 0; i < mesh.getMaxTiles(); ++i)
{
const dtMeshTile* tile = mesh.getTile(i);
if (!tile->header) continue;
drawMeshTile(dd, mesh, &query, tile, flags);
drawMeshTile(dd, mesh, q, tile, flags);
}
}