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:
parent
3d8d803674
commit
d40e79ae29
|
|
@ -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()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue