- Exhumed: Reposition bIsFiring setting.

* Mistake from e5e1428062.
This commit is contained in:
Mitchell Richters 2023-03-25 18:13:11 +11:00
parent e34c4353f6
commit f96bc3ee31

View file

@ -1549,8 +1549,6 @@ static void updatePlayerAction(Player* const pPlayer)
if (pPlayer->input.actions & SB_FIRE) // was var_38
{
pPlayer->bIsFiring = true;
if (bUnderwater)
{
nextAction = 11;
@ -1560,12 +1558,10 @@ static void updatePlayerAction(Player* const pPlayer)
nextAction = 5;
}
}
else
{
pPlayer->bIsFiring = false;
}
}
pPlayer->bIsFiring = !!(pPlayer->input.actions & SB_FIRE);
// Handle player pressing number keys to change weapon
if (auto newWeap = pPlayer->input.getNewWeapon())
{