1
0
mirror of https://github.com/Mauler125/r5sdk.git synced 2025-02-09 19:15:03 +01:00

Working Recast convex hull

This commit is contained in:
Kawe Mazidjatari 2022-07-27 11:11:41 +02:00
parent da77600baa
commit df99664d2a

@ -406,13 +406,13 @@ void rcMarkConvexPolyArea(rcContext* ctx, const float* verts, const int nverts,
if (maxx < 0) return; if (maxx < 0) return;
if (minx >= chf.width) return; if (minx >= chf.width) return;
if (maxz < 0) return; if (maxy < 0) return;
if (minz >= chf.height) return; if (miny >= chf.height) return;
if (minx < 0) minx = 0; if (minx < 0) minx = 0;
if (maxx >= chf.width) maxx = chf.width-1; if (maxx >= chf.width) maxx = chf.width-1;
if (minz < 0) minz = 0; if (miny < 0) miny = 0;
if (maxz >= chf.height) maxz = chf.height-1; if (maxy >= chf.height) maxy = chf.height-1;
// TODO: Optimize. // TODO: Optimize.