Skip to content

Commit

Permalink
Blood: Fix shotgun bug with akimbo (#803)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmyqlfpir authored Apr 19, 2024
1 parent affd375 commit 667321d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/blood/src/weapon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -934,7 +934,9 @@ void WeaponUpdateState(PLAYER *pPlayer)
{
sfxPlay3DSound(pPlayer->pSprite, 410, 3, 2);
StartQAV(pPlayer, 57, nClientEjectShell, 0);
if (gInfiniteAmmo || pPlayer->ammoCount[2] > 1)
if (powerupCheck(pPlayer, kPwUpTwoGuns) && (gInfiniteAmmo || CheckAmmo(pPlayer, 2, 4)) && !VanillaMode()) // if we now have enough ammo to carry two shotguns, update the gun state and give back our second shotgun
pPlayer->weaponState = 7;
else if (gInfiniteAmmo || pPlayer->ammoCount[2] > 1)
pPlayer->weaponState = 3;
else
pPlayer->weaponState = 2;
Expand Down

0 comments on commit 667321d

Please sign in to comment.