- 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,6 +2087,8 @@ void WeaponProcess(PLAYER *pPlayer) {
return; return;
break; break;
} }
if (VanillaMode())
{
if (pPlayer->nextWeapon) if (pPlayer->nextWeapon)
{ {
sfxKill3DSound(pPlayer->pSprite, -1, 441); sfxKill3DSound(pPlayer->pSprite, -1, 441);
@ -2094,6 +2096,7 @@ void WeaponProcess(PLAYER *pPlayer) {
pPlayer->newWeapon = pPlayer->nextWeapon; pPlayer->newWeapon = pPlayer->nextWeapon;
pPlayer->nextWeapon = 0; pPlayer->nextWeapon = 0;
} }
}
if (pPlayer->input.getNewWeapon() == WeaponSel_Next) if (pPlayer->input.getNewWeapon() == WeaponSel_Next)
{ {
pPlayer->input.setNewWeapon(0); pPlayer->input.setNewWeapon(0);