From 7d3c577c2c67cae1bd7d4e4272a68865ae5edaa3 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Fri, 18 Jan 2019 19:49:41 +0100 Subject: [PATCH] - 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. --- src/p_acs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/p_acs.cpp b/src/p_acs.cpp index f47b5b773..5c4749dec 100644 --- a/src/p_acs.cpp +++ b/src/p_acs.cpp @@ -5062,7 +5062,7 @@ static void SetActorAngle(AActor *activator, int tid, int angle, bool interpolat static void SetActorPitch(AActor *activator, int tid, int angle, bool interpolate) { - DAngle an = ACSToAngle(angle); + DAngle an = ACSToAngle(angle).Normalized180(); if (tid == 0) { if (activator != NULL)