*Minor correction for 16cad2c97082, thanks RammboNr5

--HG--
branch : trunk
This commit is contained in:
maximius
2009-11-18 16:37:52 -08:00
parent 3a9f3af443
commit a1929247a2

View File

@@ -40,7 +40,8 @@ inline float __round(float x, int precision)
{
if (precision > 0)
{
x *= pow(10.0f, precision);
precision = pow(10.0f, precision);
x *= precision;
return int(x > 0.0 ? x + 0.5 : x - 0.5)/precision;
}
return int(x > 0.0 ? x + 0.5 : x - 0.5);