Normalize angle in AngleToACS

Fixes GetActorAngle returning negative or large values with no range limit.
This commit is contained in:
Yukita Mayako 2022-11-09 18:36:44 -05:00 committed by Christoph Oelckers
parent 31ded6dd8a
commit 15e00f22e8

View file

@ -620,7 +620,7 @@ inline DAngle ACSToAngle(int acsval)
inline int AngleToACS(DAngle ang)
{
return ang.Q16();
return ang.Normalized360().Q16();
}
inline int PitchToACS(DAngle ang)