- Blood: Repair weapon switching issue by adding missing guard from 6980e8b355 that got lost during e375c799ce.

* Fixes #366.
This commit is contained in:
Mitchell Richters 2021-07-17 09:14:08 +10:00
parent d77e143ee8
commit f022f197ab

View file

@ -2087,12 +2087,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)
{