2
0
mirror of https://github.com/rehlds/rehlds.git synced 2024-12-27 23:25:45 +03:00

HTLV: RadiusFromBounds is broken (#811)

HTLV: RadiusFromBounds fix mistake
This commit is contained in:
Very Strange Karaulov 2021-02-08 13:28:07 +03:00 committed by GitHub
parent 722e19df31
commit 2f2be916c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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