mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 17:01:28 +00:00
- Use g_atan2()
within maphoriz()
so consistent math is used throughout engine.
This commit is contained in:
parent
5d8cc1b4fc
commit
789fa71a14
1 changed files with 1 additions and 1 deletions
|
@ -722,5 +722,5 @@ constexpr DAngle mapangle(int mapang)
|
|||
}
|
||||
inline DAngle maphoriz(double maphoriz)
|
||||
{
|
||||
return DAngle::fromDeg(atan2(maphoriz, 128.) * (180. / pi::pi()));
|
||||
return DAngle::fromDeg(g_atan2(maphoriz, 128.) * (180. / pi::pi()));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue