Skip to content

Commit

Permalink
- Blood: Repair weapon switching issue by adding missing guard from n…
Browse files Browse the repository at this point in the history
…ukeykt/NBlood@6980e8b that got lost during e375c79.

* Fixes #366.
  • Loading branch information
mjr4077au committed Jul 17, 2021
1 parent 2c41d21 commit 458d056
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions source/games/blood/src/weapon.cpp
Expand Up @@ -2086,12 +2086,15 @@ void WeaponProcess(PLAYER *pPlayer) {
return;
break;
}
if (pPlayer->nextWeapon)
if (VanillaMode())
{
sfxKill3DSound(pPlayer->pSprite, -1, 441);
pPlayer->weaponState = 0;
pPlayer->newWeapon = pPlayer->nextWeapon;
pPlayer->nextWeapon = 0;
if (pPlayer->nextWeapon)
{
sfxKill3DSound(pPlayer->pSprite, -1, 441);
pPlayer->weaponState = 0;
pPlayer->newWeapon = pPlayer->nextWeapon;
pPlayer->nextWeapon = 0;
}
}
if (pPlayer->input.getNewWeapon() == WeaponSel_Next)
{
Expand Down

0 comments on commit 458d056

Please sign in to comment.