From 8225d20e233c599f805be4670424ec078e2892d5 Mon Sep 17 00:00:00 2001 From: "Richard C. Gobeille" Date: Mon, 4 May 2020 18:15:52 -0700 Subject: [PATCH] RR: zero .horizAngleAdjust and .horizSkew after checking playerquitflag instead of before I don't think this actually makes a difference, but it's more consistent. --- source/rr/src/player.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/source/rr/src/player.cpp b/source/rr/src/player.cpp index c631afa82..0e2383cae 100644 --- a/source/rr/src/player.cpp +++ b/source/rr/src/player.cpp @@ -6941,9 +6941,6 @@ void P_ProcessInput(int playerNum) { auto &thisPlayer = g_player[playerNum]; - thisPlayer.horizAngleAdjust = 0; - thisPlayer.horizSkew = 0; - if (DEER) { P_DHProcessInput(playerNum); @@ -6952,6 +6949,9 @@ void P_ProcessInput(int playerNum) if (thisPlayer.playerquitflag == 0) return; + thisPlayer.horizAngleAdjust = 0; + thisPlayer.horizSkew = 0; + auto const pPlayer = thisPlayer.ps; auto const pSprite = &sprite[pPlayer->i]; @@ -8872,12 +8872,12 @@ void P_DHProcessInput(int playerNum) { auto &thisPlayer = g_player[playerNum]; - thisPlayer.horizAngleAdjust = 0; - thisPlayer.horizSkew = 0; - if (thisPlayer.playerquitflag == 0) return; + thisPlayer.horizAngleAdjust = 0; + thisPlayer.horizSkew = 0; + auto const pPlayer = thisPlayer.ps; auto const pSprite = &sprite[pPlayer->i];