From f2058c9ecd3b43aa2e5856338869ae4eaa2e47b4 Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Sat, 23 Sep 2023 14:55:23 +0200 Subject: [PATCH] Fix typo Second statement should be checking on vecMaxBound. --- r5dev/game/shared/ai_utility_shared.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/r5dev/game/shared/ai_utility_shared.cpp b/r5dev/game/shared/ai_utility_shared.cpp index aded2a3c..de9d5aa2 100644 --- a/r5dev/game/shared/ai_utility_shared.cpp +++ b/r5dev/game/shared/ai_utility_shared.cpp @@ -569,7 +569,7 @@ bool CAI_Utility::IsTileWithinRange(const dtMeshTile* pTile, const VPlane& vPlan { // Too far from camera, do not render. if (vCamera.DistTo(*vecMinBound) > flCameraRadius || - vCamera.DistTo(*vecMinBound) > flCameraRadius) + vCamera.DistTo(*vecMaxBound) > flCameraRadius) return false; }