Fix Dual Explodium guns being erroneously available with sv_infiniteammo.

This commit is contained in:
Mari the Deer 2021-05-22 00:36:45 +02:00
commit c81f1ff1cf
2 changed files with 3 additions and 5 deletions

View file

@ -1,3 +1,3 @@
[default]
SWWM_MODVER="\chSWWM \czGZ\c- \cw0.9.11b-pre r499 \cu(Fri 21 May 10:56:24 CEST 2021)\c-";
SWWM_SHORTVER="\cw0.9.11b-pre r499 \cu(2021-05-21 10:56:24)\c-";
SWWM_MODVER="\chSWWM \czGZ\c- \cw0.9.11b-pre r500 \cu(Sat 22 May 00:36:45 CEST 2021)\c-";
SWWM_SHORTVER="\cw0.9.11b-pre r500 \cu(2021-05-22 00:36:45)\c-";

View file

@ -668,9 +668,7 @@ Class DualExplodiumGun : SWWMWeapon
override bool CheckAmmo( int firemode, bool autoswitch, bool requireammo, int ammocount )
{
if ( (firemode == PrimaryFire) || (firemode == AltFire) )
return (SisterWeapon&&(SisterWeapon.Amount > 1));
return Super.CheckAmmo(firemode,autoswitch,requireammo,ammocount);
return (SisterWeapon&&(SisterWeapon.Amount > 1));
}
override bool ReportHUDAmmo()