mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 07:11:39 +00:00
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:
parent
d411defd04
commit
22ae4182b5
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue