mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-11 15:22:15 +00:00
- fixed: Weapons that were dehacked to use no ammo did not work anymore.
SVN r3622 (trunk)
This commit is contained in:
parent
7eb8594e86
commit
4f255a2652
1 changed files with 5 additions and 1 deletions
|
@ -461,7 +461,11 @@ bool AWeapon::CheckAmmo (int fireMode, bool autoSwitch, bool requireAmmo, int am
|
||||||
count1 = (Ammo1 != NULL) ? Ammo1->Amount : 0;
|
count1 = (Ammo1 != NULL) ? Ammo1->Amount : 0;
|
||||||
count2 = (Ammo2 != NULL) ? Ammo2->Amount : 0;
|
count2 = (Ammo2 != NULL) ? Ammo2->Amount : 0;
|
||||||
|
|
||||||
if (ammocount >= 0 && (WeaponFlags & WIF_DEHAMMO))
|
if ((WeaponFlags & WIF_DEHAMMO) && (Ammo1 == NULL))
|
||||||
|
{
|
||||||
|
lAmmoUse1 = 0;
|
||||||
|
}
|
||||||
|
else if (ammocount >= 0 && (WeaponFlags & WIF_DEHAMMO))
|
||||||
{
|
{
|
||||||
lAmmoUse1 = ammocount;
|
lAmmoUse1 = ammocount;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue