mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 17:01:28 +00:00
- removed constexpr from FloatToAngle.
I overlooked the xs_CRoundToInt call in there.
This commit is contained in:
parent
c957397573
commit
6726c19f9c
1 changed files with 1 additions and 1 deletions
|
@ -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.));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue