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:
parent
3a0140c2ac
commit
e344fe8295
@ -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++;
|
||||
|
Loading…
x
Reference in New Issue
Block a user