mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-27 04:00:42 +00:00
- Blood: Repair weapon switching issue by adding missing guard from 6980e8b355
that got lost during e375c799ce
.
* Fixes #366.
This commit is contained in:
parent
d77e143ee8
commit
f022f197ab
1 changed files with 8 additions and 5 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue