From ccf6722b70e1517c327c2a1e424f9187cfb05635 Mon Sep 17 00:00:00 2001 From: NY00123 Date: Fri, 22 May 2020 14:07:32 +0300 Subject: [PATCH] SW: Don't interpolate a sector object if the corresponding lasttic value is 0 --- source/sw/src/interpso.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/sw/src/interpso.cpp b/source/sw/src/interpso.cpp index 98fb4b14c..1c121dec9 100644 --- a/source/sw/src/interpso.cpp +++ b/source/sw/src/interpso.cpp @@ -269,6 +269,10 @@ void so_dointerpolations(int32_t smoothratio) // Stick at b if (SO_EMPTY(sop)) continue; + // Check if interpolation has been explicitly disabled + if (interp->lasttic == 0) + continue; + // Unfortunately, interpolating over less samples doesn't work well // in multiplayer. We also skip any sector object not // remotely controlled by some player.