Skip to content

Commit

Permalink
- Change DCoreActor::oang to a DRotator named PrevAngles.
Browse files Browse the repository at this point in the history
  • Loading branch information
mjr4077au committed Nov 26, 2022
1 parent 2b654eb commit 79687be
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/core/coreactor.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class DCoreActor : public DObject
spritesmooth_t spsmooth;

DVector3 opos;
DAngle oang;
DRotator PrevAngles;
DVector3 vel;
double oviewzoffset, viewzoffset;
double clipdist;
Expand Down Expand Up @@ -98,7 +98,7 @@ class DCoreActor : public DObject

DAngle interpolatedangle(double const interpfrac)
{
return interpolatedvalue(oang, spr.Angles.Yaw, interpfrac);
return interpolatedvalue(PrevAngles.Yaw, spr.Angles.Yaw, interpfrac);
}

void backupz()
Expand All @@ -120,7 +120,7 @@ class DCoreActor : public DObject

void backupang()
{
oang = spr.Angles.Yaw;
PrevAngles.Yaw = spr.Angles.Yaw;
}

void backuploc()
Expand Down

0 comments on commit 79687be

Please sign in to comment.