From 79e4e5b51fde510c762260e82ac7e04ec998ef15 Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Tue, 2 Jul 2024 14:10:49 +0200 Subject: [PATCH] Recast: fix variable names XZ -> XY renames. --- src/thirdparty/recast/Recast/Source/RecastContour.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/thirdparty/recast/Recast/Source/RecastContour.cpp b/src/thirdparty/recast/Recast/Source/RecastContour.cpp index f6dedc24..0c59c440 100644 --- a/src/thirdparty/recast/Recast/Source/RecastContour.cpp +++ b/src/thirdparty/recast/Recast/Source/RecastContour.cpp @@ -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