RR: Properly reset pPlayer->lastInputTicks in G_EnterLevel() since all calls to P_ResetPlayer() are commented out.

Repairs issue with player spinning out of control when entering a new level.
This commit is contained in:
Mitchell Richters 2020-05-13 20:47:17 +10:00 committed by Christoph Oelckers
parent d411defd04
commit 22ae4182b5
1 changed files with 3 additions and 1 deletions

View File

@ -819,7 +819,6 @@ void P_ResetPlayer(int playerNum)
if (!RR) pPlayer->q16rotscrnang = 0;
pPlayer->runspeed = g_playerFriction;
pPlayer->falling_counter = 0;
pPlayer->lastInputTicks = 0;
P_ResetTintFade(pPlayer);
@ -2471,6 +2470,9 @@ int G_EnterLevel(int gameMode)
P_UpdateScreenPal(g_player[myconnectindex].ps);
renderFlushPerms();
// reset lastInputTicks.
g_player[myconnectindex].ps->lastInputTicks = 0;
everyothertime = 0;
g_globalRandom = 0;