Make setinput work better in EVENT_PROCESSINPUT

git-svn-id: https://svn.eduke32.com/eduke32@6443 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2017-09-19 19:10:51 +00:00
parent bdf81027ec
commit ab79264047

View file

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