Fix for Issue 121.
This commit is contained in:
parent
f5bb64a375
commit
e5f6b82c19
@ -322,7 +322,6 @@ void rcMarkBoxArea(rcContext* ctx, const float* bmin, const float* bmax, unsigne
|
|||||||
rcCompactSpan& s = chf.spans[i];
|
rcCompactSpan& s = chf.spans[i];
|
||||||
if ((int)s.y >= miny && (int)s.y <= maxy)
|
if ((int)s.y >= miny && (int)s.y <= maxy)
|
||||||
{
|
{
|
||||||
if (areaId < chf.areas[i])
|
|
||||||
chf.areas[i] = areaId;
|
chf.areas[i] = areaId;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -395,8 +394,6 @@ void rcMarkConvexPolyArea(rcContext* ctx, const float* verts, const int nverts,
|
|||||||
{
|
{
|
||||||
rcCompactSpan& s = chf.spans[i];
|
rcCompactSpan& s = chf.spans[i];
|
||||||
if ((int)s.y >= miny && (int)s.y <= maxy)
|
if ((int)s.y >= miny && (int)s.y <= maxy)
|
||||||
{
|
|
||||||
if (areaId < chf.areas[i])
|
|
||||||
{
|
{
|
||||||
float p[3];
|
float p[3];
|
||||||
p[0] = chf.bmin[0] + (x+0.5f)*chf.cs;
|
p[0] = chf.bmin[0] + (x+0.5f)*chf.cs;
|
||||||
@ -411,7 +408,6 @@ void rcMarkConvexPolyArea(rcContext* ctx, const float* verts, const int nverts,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
ctx->stopTimer(RC_TIMER_MARK_CONVEXPOLY_AREA);
|
ctx->stopTimer(RC_TIMER_MARK_CONVEXPOLY_AREA);
|
||||||
}
|
}
|
||||||
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user