mathlib: revert Q_rint to match master

The one on master returns 0 ==Q_rint(-0)
whereas the std::rint returns -0 == Q_rint(-0)
This commit is contained in:
Eric Wasylishen 2021-10-07 19:08:34 -06:00
parent 3d8d803674
commit d40e79ae29
1 changed files with 5 additions and 1 deletions

View File

@ -165,7 +165,11 @@ void AddPointToBounds(const vec3_t v, vec3_t mins, vec3_t maxs);
plane_t FlipPlane(plane_t input); plane_t FlipPlane(plane_t input);
#define Q_rint rint template<typename T>
inline T Q_rint(T in)
{
return (T)(floor(in + 0.5));
}
/* /*
Random() Random()