From 16a48cba17d6fd12998ee83502b661dc416781a4 Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Fri, 25 Nov 2022 23:15:23 +1100 Subject: [PATCH] - Change wrapper internals for previous pitch to the actor's sprite DRotator and make sure all the games load a level. --- source/core/gameinput.cpp | 2 -- source/core/gameinput.h | 3 +-- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/source/core/gameinput.cpp b/source/core/gameinput.cpp index 622518630..93c909d6b 100644 --- a/source/core/gameinput.cpp +++ b/source/core/gameinput.cpp @@ -340,7 +340,6 @@ FSerializer& Serialize(FSerializer& arc, const char* keyname, PlayerAngles& w, P ("spin", w.YawSpin) ("actor", w.pActor) ("inputdisabled", w.legacyDisabledYaw) - ("horiz", w.ZzHORIZON()) ("horizoff", w.ZzHORIZOFF) ("inputdisabled", w.legacyDisabledPitch) .EndObject(); @@ -352,7 +351,6 @@ FSerializer& Serialize(FSerializer& arc, const char* keyname, PlayerAngles& w, P w.ZzOLDROTSCRNANG = w.ZzROTSCRNANG; w.legacyDisabledYaw = w.legacyDisabledYaw; w.resetAdjustmentYaw(); - w.ZzOLDHORIZON() = w.ZzHORIZON(); w.ZzOHORIZOFF = w.ZzHORIZOFF; w.legacyDisabledPitch = w.legacyDisabledPitch; w.resetAdjustmentPitch(); diff --git a/source/core/gameinput.h b/source/core/gameinput.h index e581a739c..0b016a5ce 100644 --- a/source/core/gameinput.h +++ b/source/core/gameinput.h @@ -10,8 +10,7 @@ struct PlayerAngles { // Temporary wrappers. DAngle& ZzHORIZON() { return pActor->spr.Angles.Pitch; } - DAngle prevHoriz; - DAngle& ZzOLDHORIZON() { return prevHoriz; } + DAngle& ZzOLDHORIZON() { return pActor->PrevAngles.Pitch; } DAngle thisAngle; DAngle& ZzANGLE() { return thisAngle; } DAngle prevAngle;