diff options
Diffstat (limited to 'mp/src/utils/vbsp/boundbox.cpp')
| -rw-r--r-- | mp/src/utils/vbsp/boundbox.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mp/src/utils/vbsp/boundbox.cpp b/mp/src/utils/vbsp/boundbox.cpp index ecb8dfa0..a62e9e2f 100644 --- a/mp/src/utils/vbsp/boundbox.cpp +++ b/mp/src/utils/vbsp/boundbox.cpp @@ -14,7 +14,7 @@ #include "tier0/memdbgon.h" -float rint(float f) +float V_rint(float f) { if (f > 0.0f) { return (float) floor(f + 0.5f); @@ -223,7 +223,7 @@ void BoundBox::GetBoundsSize(Vector& size) //----------------------------------------------------------------------------- static int Snap(/*int*/ float iValue, int iGridSize) { - return (int)(rint(iValue/iGridSize) * iGridSize); + return (int)(V_rint(iValue/iGridSize) * iGridSize); } |