- Use DAngle::fromRad() method in maphoriz().

This commit is contained in:
Mitchell Richters 2022-11-29 21:01:42 +11:00
parent 537e9df6ec
commit 5a698fbc2b

View file

@ -696,5 +696,5 @@ constexpr DAngle mapangle(int mapang)
}
inline DAngle maphoriz(double maphoriz)
{
return DAngle::fromDeg(g_atan2(maphoriz, 128.) * (180. / pi::pi()));
return DAngle::fromRad(g_atan2(maphoriz, 128.));
}