mirror of
https://github.com/recastnavigation/recastnavigation.git
synced 2026-07-05 05:29:07 +00:00
duDebugDraw::polyToCol changed to areaToCol (#255)
This commit is contained in:
committed by
Jakob Botsch Nielsen
parent
ad6e5de2e9
commit
16a7a30ada
@@ -28,16 +28,16 @@ duDebugDraw::~duDebugDraw()
|
||||
// Empty
|
||||
}
|
||||
|
||||
unsigned int duDebugDraw::polyToCol(const struct dtPoly* poly)
|
||||
unsigned int duDebugDraw::areaToCol(unsigned int area)
|
||||
{
|
||||
if (poly->getArea() == 0)
|
||||
if (area == 0)
|
||||
{
|
||||
// Treat zero area type as default.
|
||||
return duRGBA(0, 192, 255, 255);
|
||||
}
|
||||
else
|
||||
{
|
||||
return duIntToCol(poly->getArea(), 255);
|
||||
return duIntToCol(area, 255);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user