Recast: make navmesh debug draw flags an int

Should be an int not a char, we use more bits than a char can store now.
This commit is contained in:
Kawe Mazidjatari 2024-07-08 01:39:19 +02:00
parent c64ebe12c2
commit 6a9599ca2e
2 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ enum DrawNavMeshFlags
DU_DRAWNAVMESH_NO_ALPHA = 1 << 9, // Disable navmesh transparency.
};
void duDebugDrawNavMesh(struct duDebugDraw* dd, const dtNavMesh& mesh, unsigned char flags);
void duDebugDrawNavMesh(struct duDebugDraw* dd, const dtNavMesh& mesh, unsigned int flags);
void duDebugDrawNavMeshWithClosedList(struct duDebugDraw* dd, const dtNavMesh& mesh, const dtNavMeshQuery& query, unsigned int flags);
void duDebugDrawNavMeshNodes(struct duDebugDraw* dd, const dtNavMeshQuery& query);
void duDebugDrawNavMeshBVTree(struct duDebugDraw* dd, const dtNavMesh& mesh);

View File

@ -265,7 +265,7 @@ static void drawMeshTile(duDebugDraw* dd, const dtNavMesh& mesh, const dtNavMesh
dd->depthMask(true);
}
void duDebugDrawNavMesh(duDebugDraw* dd, const dtNavMesh& mesh, unsigned char flags)
void duDebugDrawNavMesh(duDebugDraw* dd, const dtNavMesh& mesh, unsigned int flags)
{
if (!dd) return;