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:
Alug committed 2025-04-17 20:49:48 +02:00
1 parent 541c70498d
commit db43b90b70
1 file changed
+1 -3
+1 -3
View File
@@ -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)