Recast: fix variable names

XZ -> XY renames.
This commit is contained in:
Kawe Mazidjatari 2024-07-02 14:10:49 +02:00
parent 5c6518a252
commit 79e4e5b51f

View File

@ -395,8 +395,8 @@ static void simplifyContour(rcIntArray& points, rcIntArray& simplified,
if (tess)
{
int dx = bx - ax;
int dz = by - ay;
if (dx*dx + dz*dz > maxEdgeLen*maxEdgeLen)
int dy = by - ay;
if (dx*dx + dy*dy > maxEdgeLen*maxEdgeLen)
{
// Round based on the segments in lexilogical order so that the
// max tesselation is consistent regardles in which direction