diff --git a/Recast/Source/RecastArea.cpp b/Recast/Source/RecastArea.cpp index 632cfd2..e89caee 100644 --- a/Recast/Source/RecastArea.cpp +++ b/Recast/Source/RecastArea.cpp @@ -322,8 +322,7 @@ void rcMarkBoxArea(rcContext* ctx, const float* bmin, const float* bmax, unsigne rcCompactSpan& s = chf.spans[i]; if ((int)s.y >= miny && (int)s.y <= maxy) { - if (areaId < chf.areas[i]) - chf.areas[i] = areaId; + chf.areas[i] = areaId; } } } @@ -396,17 +395,14 @@ void rcMarkConvexPolyArea(rcContext* ctx, const float* verts, const int nverts, rcCompactSpan& s = chf.spans[i]; if ((int)s.y >= miny && (int)s.y <= maxy) { - if (areaId < chf.areas[i]) - { - float p[3]; - p[0] = chf.bmin[0] + (x+0.5f)*chf.cs; - p[1] = 0; - p[2] = chf.bmin[2] + (z+0.5f)*chf.cs; + float p[3]; + p[0] = chf.bmin[0] + (x+0.5f)*chf.cs; + p[1] = 0; + p[2] = chf.bmin[2] + (z+0.5f)*chf.cs; - if (pointInPoly(nverts, verts, p)) - { - chf.areas[i] = areaId; - } + if (pointInPoly(nverts, verts, p)) + { + chf.areas[i] = areaId; } } } diff --git a/RecastDemo/Bin/Recast.app/Contents/MacOS/Recast b/RecastDemo/Bin/Recast.app/Contents/MacOS/Recast index bdef8d4..1fe6fe8 100755 Binary files a/RecastDemo/Bin/Recast.app/Contents/MacOS/Recast and b/RecastDemo/Bin/Recast.app/Contents/MacOS/Recast differ