- Change DCoreActor::oang to a DRotator named PrevAngles.

This commit is contained in:
Mitchell Richters 2022-11-25 14:13:13 +11:00 committed by Christoph Oelckers
parent 2e0b9490e1
commit 901000bee5

View file

@ -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()