- normalize the pitch in ACS's SetActorPitch.

Apparently some people have to pass positive numbers in here to get a negative pitch, e.g. 350.0 instead of -10.0...
This prevents clamping of such out-of-range values that would otherwise constitute valid pitches with the wraparound in place.
This commit is contained in:
Christoph Oelckers 2019-01-18 19:49:41 +01:00
parent 395d613912
commit 1c75a409b6

View file

@ -5076,7 +5076,7 @@ void DLevelScript::SetActorAngle(AActor *activator, int tid, int angle, bool int
void DLevelScript::SetActorPitch(AActor *activator, int tid, int angle, bool interpolate)
{
DAngle an = ACSToAngle(angle);
DAngle an = ACSToAngle(angle).Normalized180();
if (tid == 0)
{
if (activator != NULL)