- fixed ammo check for weapon with 'uses both' flags

https://forum.zdoom.org/viewtopic.php?t=63047
This commit is contained in:
alexey.lysiuk 2018-12-29 13:36:10 +02:00
parent 8e684f9687
commit 36896a1224

View file

@ -898,7 +898,7 @@ class Weapon : StateProvider
}
let altFire = (fireMode == AltFire);
let optional = (altFire? bAlt_Ammo_Optional : bAmmo_Optional);
let useboth = (altFire? bPrimary_Uses_Both : bAlt_Uses_Both);
let useboth = (altFire? bAlt_Uses_Both : bPrimary_Uses_Both);
if (!requireAmmo && optional)
{