From 0ec9dd9a14abb19e8be30e813789f77870ae16e4 Mon Sep 17 00:00:00 2001 From: "Richard C. Gobeille" Date: Mon, 4 May 2020 18:01:36 -0700 Subject: [PATCH] Duke3d: zero player .horizRecenter, .horizSkew, and .horizAngleAdjust in P_ResetPlayer() --- source/duke3d/src/premap.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/duke3d/src/premap.cpp b/source/duke3d/src/premap.cpp index b38afbfb2..4a023dc6d 100644 --- a/source/duke3d/src/premap.cpp +++ b/source/duke3d/src/premap.cpp @@ -777,6 +777,10 @@ void P_ResetPlayer(int playerNum) ? PWEAPON(playerNum, p.curr_weapon, TotalTime) : 0; + g_player[playerNum].horizRecenter = 0; + g_player[playerNum].horizSkew = 0; + g_player[playerNum].horizAngleAdjust = 0; + P_UpdateScreenPal(&p); VM_OnEvent(EVENT_RESETPLAYER, p.i, playerNum); }