Duke3d: zero player .horizRecenter, .horizSkew, and .horizAngleAdjust in P_ResetPlayer()

This commit is contained in:
Richard C. Gobeille 2020-05-04 18:01:36 -07:00 committed by Christoph Oelckers
parent ca994b31c9
commit 0ec9dd9a14

View file

@ -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);
}