- Use g_atan2() within maphoriz() so consistent math is used throughout engine.

This commit is contained in:
Mitchell Richters 2022-09-28 12:31:19 +10:00 committed by Christoph Oelckers
parent 5d8cc1b4fc
commit 789fa71a14

View file

@ -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()));
}