- removed constexpr from FloatToAngle.

I overlooked the xs_CRoundToInt call in there.
This commit is contained in:
Christoph Oelckers 2020-09-01 19:48:21 +02:00
parent c957397573
commit 6726c19f9c

View file

@ -68,7 +68,7 @@ inline constexpr int32_t FixedToInt(fixed_t f)
return (f + FRACUNIT/2) >> FRACBITS; return (f + FRACUNIT/2) >> FRACBITS;
} }
inline constexpr unsigned FloatToAngle(double f) inline unsigned FloatToAngle(double f)
{ {
return xs_CRoundToInt((f)* (0x40000000 / 90.)); return xs_CRoundToInt((f)* (0x40000000 / 90.));
} }