From 48a00ba911ba0861b65b4bd4c0872cf63549a7df Mon Sep 17 00:00:00 2001 From: Alug Date: Sun, 6 Oct 2024 14:52:54 +0200 Subject: [PATCH] this needs to be set twice Zzz... --- src/g_game.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/g_game.c b/src/g_game.c index 1b6beb96c..6b61f0a43 100644 --- a/src/g_game.c +++ b/src/g_game.c @@ -1999,12 +1999,18 @@ INT32 G_CountPlayersPotentiallyViewable(boolean active) static void G_FixCamera(UINT8 view) { player_t *player = &players[displayplayers[view - 1]]; + // The order of displayplayers can change, which would // invalidate localangle. localangle[view - 1] = player->cmd.angleturn; + P_ResetCamera(player, &camera[view - 1]); + // Make sure the viewport doesn't interpolate at all into // its new position -- just snap instantly into place. + + // Why does it need to be done twice? + R_ResetViewInterpolation(view); R_ResetViewInterpolation(view); }