diff --git a/source/core/gameinput.cpp b/source/core/gameinput.cpp index 93c909d6b..f9bae7a6f 100644 --- a/source/core/gameinput.cpp +++ b/source/core/gameinput.cpp @@ -334,8 +334,7 @@ FSerializer& Serialize(FSerializer& arc, const char* keyname, PlayerAngles& w, P { if (arc.BeginObject(keyname)) { - arc("ang", w.ZzANGLE()) - ("lookang", w.ZzLOOKANG) + arc("lookang", w.ZzLOOKANG) ("rotscrnang", w.ZzROTSCRNANG) ("spin", w.YawSpin) ("actor", w.pActor) @@ -346,7 +345,6 @@ FSerializer& Serialize(FSerializer& arc, const char* keyname, PlayerAngles& w, P if (arc.isReading()) { - w.ZzOLDANGLE() = w.ZzANGLE(); w.ZzOLDLOOKANG = w.ZzLOOKANG; w.ZzOLDROTSCRNANG = w.ZzROTSCRNANG; w.legacyDisabledYaw = w.legacyDisabledYaw; diff --git a/source/core/gameinput.h b/source/core/gameinput.h index c1fb86d3a..f54b19a9d 100644 --- a/source/core/gameinput.h +++ b/source/core/gameinput.h @@ -12,8 +12,7 @@ struct PlayerAngles DAngle& ZzHORIZON() { return pActor->spr.Angles.Pitch; } DAngle& ZzOLDHORIZON() { return pActor->PrevAngles.Pitch; } DAngle& ZzANGLE() { return pActor->spr.Angles.Yaw; } - DAngle prevAngle; - DAngle& ZzOLDANGLE() { return prevAngle; } + DAngle& ZzOLDANGLE() { return pActor->PrevAngles.Yaw; } friend FSerializer& Serialize(FSerializer& arc, const char* keyname, PlayerAngles& w, PlayerAngles* def);