SW: Don't interpolate a sector object if the corresponding lasttic value is 0

This commit is contained in:
NY00123 2020-05-22 14:07:32 +03:00 committed by Christoph Oelckers
parent 37c3f1cc46
commit ccf6722b70

View file

@ -269,6 +269,10 @@ void so_dointerpolations(int32_t smoothratio) // Stick at b
if (SO_EMPTY(sop)) if (SO_EMPTY(sop))
continue; continue;
// Check if interpolation has been explicitly disabled
if (interp->lasttic == 0)
continue;
// Unfortunately, interpolating over less samples doesn't work well // Unfortunately, interpolating over less samples doesn't work well
// in multiplayer. We also skip any sector object not // in multiplayer. We also skip any sector object not
// remotely controlled by some player. // remotely controlled by some player.