Kaynağa Gözat

Fixed fround.

Branimir Karadžić 10 yıl önce
ebeveyn
işleme
c8482b3cff
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      include/bx/fpumath.h

+ 1 - 1
include/bx/fpumath.h

@@ -31,7 +31,7 @@ namespace bx
 
 	inline float fround(float _f)
 	{
-		return float(int(_f) );
+		return floorf(_f + 0.5f);
 	}
 
 	inline float fmin(float _a, float _b)