Revert "convert fixed to float with multiplication instead of division"
i did not intend to push this to testing lel
This commit is contained in:
1 parent
541c70498d
commit
db43b90b70
1 file changed
+1
-3
+1
-3
@@ -39,11 +39,9 @@ typedef UINT32 ufixed_t;
|
||||
\brief convert fixed_t into floating number
|
||||
*/
|
||||
|
||||
static const float FLOATUNIT = (1.0f / (float)FRACUNIT);
|
||||
|
||||
FUNCMATH FUNCINLINE static ATTRINLINE float FixedToFloat(fixed_t x)
|
||||
{
|
||||
return x * FLOATUNIT;
|
||||
return x / (float)FRACUNIT;
|
||||
}
|
||||
|
||||
FUNCMATH FUNCINLINE static ATTRINLINE fixed_t FloatToFixed(float f)
|
||||
|
||||
Reference in new issue
Block a user