mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-01-19 07:00:52 +00:00
- 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:
parent
90b57ed808
commit
9c2a784ca1
1 changed files with 1 additions and 1 deletions
|
@ -5168,7 +5168,7 @@ static void SetActorAngle(AActor *activator, int tid, int angle, bool interpolat
|
||||||
|
|
||||||
static void SetActorPitch(AActor *activator, int tid, int angle, bool interpolate)
|
static void SetActorPitch(AActor *activator, int tid, int angle, bool interpolate)
|
||||||
{
|
{
|
||||||
DAngle an = ACSToAngle(angle);
|
DAngle an = ACSToAngle(angle).Normalized180();
|
||||||
if (tid == 0)
|
if (tid == 0)
|
||||||
{
|
{
|
||||||
if (activator != NULL)
|
if (activator != NULL)
|
||||||
|
|
Loading…
Reference in a new issue