From 851ae9c75fa0b7e99ce27eebd5b1ba4a77b9012c Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Wed, 6 Nov 2024 14:17:30 +0100 Subject: [PATCH] Recast: fix typo in parameter name After coordinate system conversion, this shouldb e X-Y. --- src/thirdparty/recast/Recast/Include/Recast.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/thirdparty/recast/Recast/Include/Recast.h b/src/thirdparty/recast/Recast/Include/Recast.h index 0c35e349..cc916025 100644 --- a/src/thirdparty/recast/Recast/Include/Recast.h +++ b/src/thirdparty/recast/Recast/Include/Recast.h @@ -1078,12 +1078,12 @@ inline int rcGetDirOffsetY(int direction) /// Gets the direction for the specified offset. One of x and y should be 0. /// @param[in] offsetX The x offset. [Limits: -1 <= value <= 1] -/// @param[in] offsetZ The z offset. [Limits: -1 <= value <= 1] +/// @param[in] offsetZ The Y offset. [Limits: -1 <= value <= 1] /// @return The direction that represents the offset. -inline int rcGetDirForOffset(int offsetX, int offsetZ) +inline int rcGetDirForOffset(int offsetX, int offsetY) { static const int dirs[5] = { 3, 0, -1, 2, 1 }; - return dirs[((offsetZ + 1) << 1) + offsetX]; + return dirs[((offsetY + 1) << 1) + offsetX]; } /// @}