diff --git a/Recast/Source/RecastContour.cpp b/Recast/Source/RecastContour.cpp index 67112bb..2e3c511 100644 --- a/Recast/Source/RecastContour.cpp +++ b/Recast/Source/RecastContour.cpp @@ -602,7 +602,7 @@ bool rcBuildContours(rcCompactHeightfield& chf, } } - // Check and merge droplings. + // Check and merge droppings. // Sometimes the previous algorithms can fail and create several countours // per area. This pass will try to merge the holes into the main region. for (int i = 0; i < cset.nconts; ++i) diff --git a/Recast/Source/RecastRegion.cpp b/Recast/Source/RecastRegion.cpp index 9197283..2409ff6 100644 --- a/Recast/Source/RecastRegion.cpp +++ b/Recast/Source/RecastRegion.cpp @@ -888,12 +888,8 @@ bool rcBuildDistanceField(rcCompactHeightfield& chf) rcTimeVal blurStartTime = rcGetPerformanceTimer(); // Blur - int blurThr[4] = { 2, 4, 8, 16 }; - for (int i = 0; i < 4; ++i) - { - if (boxBlur(chf, blurThr[i], src, dst) != src) - rcSwap(src, dst); - } + if (boxBlur(chf, 2, src, dst) != src) + rcSwap(src, dst); // Store distance. for (int i = 0; i < chf.spanCount; ++i)