DEADSOFTWARE

superminigun is using shells, not bullets; fixed `hasAmmoForWeapon()`
authorKetmar Dark <ketmar@ketmar.no-ip.org>
Sat, 29 Sep 2018 20:53:19 +0000 (23:53 +0300)
committerKetmar Dark <ketmar@ketmar.no-ip.org>
Sat, 29 Sep 2018 20:53:44 +0000 (23:53 +0300)
src/game/g_player.pas

index e0a04f5354833be34d1bbe88fdeb8877a5237820..22d262b0a57acf8a9f41e84f7a0cb9d82ac4d354 100644 (file)
@@ -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);