From 5fe55f54a1a3e862cf70743ee10a87c102600cc4 Mon Sep 17 00:00:00 2001 From: James R Date: Sun, 26 Feb 2023 02:21:49 -0800 Subject: [PATCH] Reset camera interpolation when switching viewpoints Fixes a 1-frame jitter of the camera moving across the level and turning around to match the new viewpoint. --- src/g_game.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/g_game.c b/src/g_game.c index 46be75843..0e7e4cac4 100644 --- a/src/g_game.c +++ b/src/g_game.c @@ -2050,6 +2050,10 @@ void G_ResetView(UINT8 viewnum, INT32 playernum, boolean onlyactive) { camerap = &camera[viewnum-1]; P_ResetCamera(&players[(*displayplayerp)], camerap); + + // Why does it need to be done twice? + R_ResetViewInterpolation(viewnum); + R_ResetViewInterpolation(viewnum); } if (viewnum > splits)