Remove dead code in rcBuildRegions

The code is checking for an invalid region ID, after setting it to a valid value
This commit is contained in:
Ben Hymers 2016-03-14 09:31:42 +00:00
parent 3a0140c2ac
commit e344fe8295

View File

@ -1576,12 +1576,6 @@ bool rcBuildRegions(rcContext* ctx, rcCompactHeightfield& chf,
const int bw = rcMin(w, borderSize);
const int bh = rcMin(h, borderSize);
if (regionId > 0xFFFB)
{
ctx->log(RC_LOG_ERROR, "rcBuildRegions: Region ID overflow");
return false;
}
// Paint regions
paintRectRegion(0, bw, 0, h, regionId|RC_BORDER_REG, chf, srcReg); regionId++;
paintRectRegion(w-bw, w, 0, h, regionId|RC_BORDER_REG, chf, srcReg); regionId++;