mirror of
https://github.com/rehlds/rehlds.git
synced 2024-12-29 08:05:50 +03:00
HTLV: RadiusFromBounds is broken (#811)
HTLV: RadiusFromBounds fix mistake
This commit is contained in:
parent
722e19df31
commit
2f2be916c2
@ -306,8 +306,7 @@ float RadiusFromBounds(const vec_t *mins, const vec_t *maxs)
|
|||||||
for (int i = 0; i < 3; i++)
|
for (int i = 0; i < 3; i++)
|
||||||
{
|
{
|
||||||
float fmin = fabs(mins[i]);
|
float fmin = fabs(mins[i]);
|
||||||
float fmax = fabs(mins[i]);
|
float fmax = fabs(maxs[i]);
|
||||||
|
|
||||||
if (fmin > fmax)
|
if (fmin > fmax)
|
||||||
corner[i] = fmin;
|
corner[i] = fmin;
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user