From 0703593e5048c7123ee86693a42512d663306833 Mon Sep 17 00:00:00 2001 From: Ketmar Dark Date: Sat, 29 Sep 2018 23:53:19 +0300 Subject: [PATCH 1/1] superminigun is using shells, not bullets; fixed `hasAmmoForWeapon()` --- src/game/g_player.pas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/g_player.pas b/src/game/g_player.pas index e0a04f5..22d262b 100644 --- a/src/game/g_player.pas +++ b/src/game/g_player.pas @@ -3553,8 +3553,8 @@ begin result := false; case weapon of WEAPON_KASTET, WEAPON_SAW: result := true; - WEAPON_SHOTGUN1, WEAPON_SHOTGUN2: result := (FAmmo[A_SHELLS] > 0); - WEAPON_PISTOL, WEAPON_CHAINGUN, WEAPON_SUPERPULEMET: result := (FAmmo[A_BULLETS] > 0); + WEAPON_SHOTGUN1, WEAPON_SHOTGUN2, WEAPON_SUPERPULEMET: result := (FAmmo[A_SHELLS] > 0); + WEAPON_PISTOL, WEAPON_CHAINGUN: result := (FAmmo[A_BULLETS] > 0); WEAPON_ROCKETLAUNCHER: result := (FAmmo[A_ROCKETS] > 0); WEAPON_PLASMA, WEAPON_BFG: result := (FAmmo[A_CELLS] > 0); WEAPON_FLAMETHROWER: result := (FAmmo[A_FUEL] > 0); -- 2.29.2