diff --git a/source/duke3d/src/player.cpp b/source/duke3d/src/player.cpp index f348b7b62..34e26b5db 100644 --- a/source/duke3d/src/player.cpp +++ b/source/duke3d/src/player.cpp @@ -4549,14 +4549,15 @@ void P_ProcessInput(int playerNum) if (g_player[playerNum].playerquitflag == 0) return; - DukePlayer_t *const pPlayer = g_player[playerNum].ps; - spritetype *const pSprite = &sprite[pPlayer->i]; - uint32_t playerBits = g_player[playerNum].inputBits->bits; + DukePlayer_t *const pPlayer = g_player[playerNum].ps; + spritetype *const pSprite = &sprite[pPlayer->i]; ++pPlayer->player_par; VM_OnEvent(EVENT_PROCESSINPUT, pPlayer->i, playerNum); + uint32_t playerBits = g_player[playerNum].inputBits->bits; + if (pPlayer->cheat_phase > 0) playerBits = 0;