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) if (g_player[playerNum].playerquitflag == 0)
return; return;
DukePlayer_t *const pPlayer = g_player[playerNum].ps; DukePlayer_t *const pPlayer = g_player[playerNum].ps;
spritetype *const pSprite = &sprite[pPlayer->i]; spritetype *const pSprite = &sprite[pPlayer->i];
uint32_t playerBits = g_player[playerNum].inputBits->bits;
++pPlayer->player_par; ++pPlayer->player_par;
VM_OnEvent(EVENT_PROCESSINPUT, pPlayer->i, playerNum); VM_OnEvent(EVENT_PROCESSINPUT, pPlayer->i, playerNum);
uint32_t playerBits = g_player[playerNum].inputBits->bits;
if (pPlayer->cheat_phase > 0) if (pPlayer->cheat_phase > 0)
playerBits = 0; playerBits = 0;