From 2f2be916c2de55a9b1c74abbada13f4ac91df170 Mon Sep 17 00:00:00 2001 From: Very Strange Karaulov <62130676+2020karaulov2020@users.noreply.github.com> Date: Mon, 8 Feb 2021 13:28:07 +0300 Subject: [PATCH] HTLV: RadiusFromBounds is broken (#811) HTLV: RadiusFromBounds fix mistake --- rehlds/HLTV/common/mathlib.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rehlds/HLTV/common/mathlib.cpp b/rehlds/HLTV/common/mathlib.cpp index fb8e5ab..813c450 100644 --- a/rehlds/HLTV/common/mathlib.cpp +++ b/rehlds/HLTV/common/mathlib.cpp @@ -306,8 +306,7 @@ float RadiusFromBounds(const vec_t *mins, const vec_t *maxs) for (int i = 0; i < 3; i++) { float fmin = fabs(mins[i]); - float fmax = fabs(mins[i]); - + float fmax = fabs(maxs[i]); if (fmin > fmax) corner[i] = fmin; else