From 6d1a3bfce0db4cca26b61107322ef4a0c5035521 Mon Sep 17 00:00:00 2001 From: Eidolon Date: Tue, 8 Nov 2022 18:48:50 -0600 Subject: [PATCH] Reset camera when moving player to spawn/starpost --- src/g_game.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/g_game.c b/src/g_game.c index e1380e3a7..abefac161 100644 --- a/src/g_game.c +++ b/src/g_game.c @@ -2809,6 +2809,13 @@ void G_MovePlayerToSpawnOrStarpost(INT32 playernum) P_MovePlayerToStarpost(playernum); else P_MovePlayerToSpawn(playernum, G_FindMapStart(playernum)); + + R_ResetMobjInterpolationState(players[playernum].mo); + + if (playernum == consoleplayer) + P_ResetCamera(&players[playernum], &camera); + else if (playernum == secondarydisplayplayer) + P_ResetCamera(&players[playernum], &camera2); } mapthing_t *G_FindCTFStart(INT32 playernum)