mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Recast: fix bug in rcMarkCylinderArea (XZY -> XYZ)
Stack variable 'miny' should be nulled if its < 0. This was missed during the XZY -> XYZ conversion.
This commit is contained in:
parent
975fa0ebbe
commit
f01e7ae55a
@ -557,7 +557,7 @@ void rcMarkCylinderArea(rcContext* ctx, const float* pos,
|
||||
|
||||
if (minx < 0) minx = 0;
|
||||
if (maxx >= chf.width) maxx = chf.width-1;
|
||||
if (miny < 0) minz = 0;
|
||||
if (miny < 0) miny = 0;
|
||||
if (maxy >= chf.height) maxy = chf.height-1;
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user