Fixed google code Issue 233
This commit is contained in:
parent
36a967ffcd
commit
816c99aa3e
@ -325,7 +325,7 @@ bool rcBuildHeightfieldLayers(rcContext* ctx, rcCompactHeightfield& chf,
|
|||||||
continue;
|
continue;
|
||||||
// Skip if the height range would become too large.
|
// Skip if the height range would become too large.
|
||||||
const int ymin = rcMin(root.ymin, regn.ymin);
|
const int ymin = rcMin(root.ymin, regn.ymin);
|
||||||
const int ymax = rcMin(root.ymax, regn.ymax);
|
const int ymax = rcMax(root.ymax, regn.ymax);
|
||||||
if ((ymax - ymin) >= 255)
|
if ((ymax - ymin) >= 255)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
@ -373,7 +373,7 @@ bool rcBuildHeightfieldLayers(rcContext* ctx, rcCompactHeightfield& chf,
|
|||||||
continue;
|
continue;
|
||||||
// Skip if the height range would become too large.
|
// Skip if the height range would become too large.
|
||||||
const int ymin = rcMin(ri.ymin, rj.ymin);
|
const int ymin = rcMin(ri.ymin, rj.ymin);
|
||||||
const int ymax = rcMin(ri.ymax, rj.ymax);
|
const int ymax = rcMax(ri.ymax, rj.ymax);
|
||||||
if ((ymax - ymin) >= 255)
|
if ((ymax - ymin) >= 255)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user