mirror of
https://github.com/recastnavigation/recastnavigation.git
synced 2026-07-04 04:59:07 +00:00
Added more bits to compact neighbour indices, moved region id to rcCompactSpan to save memory.
This commit is contained in:
@@ -179,9 +179,6 @@ void duDebugDrawCompactHeightfieldSolid(duDebugDraw* dd, const rcCompactHeightfi
|
||||
|
||||
void duDebugDrawCompactHeightfieldRegions(duDebugDraw* dd, const rcCompactHeightfield& chf)
|
||||
{
|
||||
if (!chf.regs)
|
||||
return;
|
||||
|
||||
const float cs = chf.cs;
|
||||
const float ch = chf.ch;
|
||||
|
||||
@@ -200,8 +197,8 @@ void duDebugDrawCompactHeightfieldRegions(duDebugDraw* dd, const rcCompactHeight
|
||||
const rcCompactSpan& s = chf.spans[i];
|
||||
const float fy = chf.bmin[1] + (s.y)*ch;
|
||||
unsigned int color;
|
||||
if (chf.regs[i])
|
||||
color = duIntToCol(chf.regs[i], 192);
|
||||
if (s.reg)
|
||||
color = duIntToCol(s.reg, 192);
|
||||
else
|
||||
color = duRGBA(0,0,0,64);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user