mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-26 14:01:45 +00:00
Normalize angle in AngleToACS
Fixes GetActorAngle returning negative or large values with no range limit.
This commit is contained in:
parent
31ded6dd8a
commit
15e00f22e8
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue