Skip to content

Commit

Permalink
Restored A_OverlayOffset's ability to cancel out interpolation withou…
Browse files Browse the repository at this point in the history
…t the interpolate/add flags.
  • Loading branch information
MajorCooke authored and coelckers committed Oct 25, 2020
1 parent 7477dfa commit 18e7b56
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/playsim/p_pspr.cpp
Expand Up @@ -841,14 +841,8 @@ void A_OverlayOffset(AActor *self, int layer, double wx, double wy, int flags)
if (!(flags & WOF_KEEPX)) psp->x = (flags & WOF_ADD) ? psp->x + wx : wx;
if (!(flags & WOF_KEEPY)) psp->y = (flags & WOF_ADD) ? psp->y + wy : wy;

if (flags & (WOF_ADD | WOF_INTERPOLATE)) psp->InterpolateTic = true;
/*
if (!(flags & (WOF_INTERPOLATE|WOF_ADD)))
{
psp->oldx = psp->x;
psp->oldy = psp->y;
}
*/
if (!(flags & (WOF_ADD | WOF_INTERPOLATE)))
psp->ResetInterpolation();
}
}

Expand Down

0 comments on commit 18e7b56

Please sign in to comment.