From 0b606b21fd197dd6c49b1b08bb840bd0cfb96e4b Mon Sep 17 00:00:00 2001
From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com>
Date: Wed, 4 Sep 2024 22:47:36 +0200
Subject: [PATCH] Recast: improve code consistency

---
 src/thirdparty/recast/Detour/Source/DetourNavMesh.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/thirdparty/recast/Detour/Source/DetourNavMesh.cpp b/src/thirdparty/recast/Detour/Source/DetourNavMesh.cpp
index 3332c50d..0a4dd919 100644
--- a/src/thirdparty/recast/Detour/Source/DetourNavMesh.cpp
+++ b/src/thirdparty/recast/Detour/Source/DetourNavMesh.cpp
@@ -2203,7 +2203,7 @@ float dtCalcOffMeshRefYaw(const float* spos, const float* epos)
 
 void dtCalcOffMeshRefPos(const float* spos, float yawRad, float offset, float* res)
 {
-	const float yawDeg = yawRad * (RD_PI/180.0f);
+	const float yawDeg = yawRad * (180.0f/RD_PI);
 
 	const float dx = offset*rdMathCosf(yawDeg);
 	const float dy = offset*rdMathSinf(yawDeg);