From 901000bee568be18bf4cdad57653bf0c94b11dbd Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Fri, 25 Nov 2022 14:13:13 +1100 Subject: [PATCH] - Change `DCoreActor::oang` to a DRotator named `PrevAngles`. --- source/core/coreactor.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/core/coreactor.h b/source/core/coreactor.h index 729c664c4..9c77979ad 100644 --- a/source/core/coreactor.h +++ b/source/core/coreactor.h @@ -42,7 +42,7 @@ public: spritesmooth_t spsmooth; DVector3 opos; - DAngle oang; + DRotator PrevAngles; DVector3 vel; double oviewzoffset, viewzoffset; double clipdist; @@ -98,7 +98,7 @@ public: DAngle interpolatedangle(double const interpfrac) { - return interpolatedvalue(oang, spr.Angles.Yaw, interpfrac); + return interpolatedvalue(PrevAngles.Yaw, spr.Angles.Yaw, interpfrac); } void backupz() @@ -120,7 +120,7 @@ public: void backupang() { - oang = spr.Angles.Yaw; + PrevAngles.Yaw = spr.Angles.Yaw; } void backuploc()