From 2b697d6c4c29b84604c1ed30031eba642d96fea4 Mon Sep 17 00:00:00 2001 From: Boondorl Date: Thu, 25 Apr 2024 07:52:44 -0400 Subject: [PATCH] Interpolation fix for network prediction This is a minor fix for interpolation when playing online as predicted movement was not properly having its prev data reset like a real tick would be. This resulted in jittery player sprites in third person. --- src/playsim/p_user.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/playsim/p_user.cpp b/src/playsim/p_user.cpp index 9751fc268c..b67ed2bb9e 100644 --- a/src/playsim/p_user.cpp +++ b/src/playsim/p_user.cpp @@ -1481,6 +1481,8 @@ void P_PredictPlayer (player_t *player) R_RebuildViewInterpolation(player); player->cmd = localcmds[i % LOCALCMDTICS]; + player->mo->ClearInterpolation(); + player->mo->ClearFOVInterpolation(); P_PlayerThink (player); player->mo->Tick ();