Skip to content

Commit

Permalink
Blood: Do weapon logic after input polling for non-vanilla mode
Browse files Browse the repository at this point in the history
  • Loading branch information
tmyqlfpir authored and Hendricks266 committed Jul 12, 2023
1 parent ba243ab commit e0307c7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion source/blood/src/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1384,7 +1384,8 @@ void ProcessInput(PLAYER *pPlayer)
pPlayer->restTime = 0;
else if (pPlayer->restTime >= 0)
pPlayer->restTime += kTicsPerFrame;
WeaponProcess(pPlayer);
if (VanillaMode() || pXSprite->health == 0)
WeaponProcess(pPlayer);
if (pXSprite->health == 0)
{
char bSeqStat = playerSeqPlaying(pPlayer, 16);
Expand Down Expand Up @@ -1710,6 +1711,8 @@ void ProcessInput(PLAYER *pPlayer)
pPlayer->q16slopehoriz = 0;
}
pPlayer->slope = (-fix16_to_int(pPlayer->q16horiz))<<7;
if (!VanillaMode())
WeaponProcess(pPlayer);
if (pInput->keyFlags.prevItem)
{
pInput->keyFlags.prevItem = 0;
Expand Down

0 comments on commit e0307c7

Please sign in to comment.