From 18e7b56bdc5615bfaef7084d8786752987d24b5c Mon Sep 17 00:00:00 2001 From: Major Cooke Date: Mon, 5 Oct 2020 11:19:49 -0500 Subject: [PATCH] Restored A_OverlayOffset's ability to cancel out interpolation without the interpolate/add flags. --- src/playsim/p_pspr.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/playsim/p_pspr.cpp b/src/playsim/p_pspr.cpp index 4b7ded01b1..826ab8e102 100644 --- a/src/playsim/p_pspr.cpp +++ b/src/playsim/p_pspr.cpp @@ -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(); } }