- Added Gez's AMMO_CHECKBOTH submission.
SVN r1627 (trunk)
This commit is contained in:
parent
fb5e392f2f
commit
91e0f4d11d
4 changed files with 4 additions and 2 deletions
|
|
@ -438,7 +438,7 @@ bool AWeapon::CheckAmmo (int fireMode, bool autoSwitch, bool requireAmmo)
|
|||
{ // If this weapon has no alternate fire, then there is never enough ammo for it
|
||||
enough &= 1;
|
||||
}
|
||||
if ((enough & enoughmask) == enoughmask)
|
||||
if (((enough & enoughmask) == enoughmask) || (enough && (WeaponFlags & WIF_AMMO_CHECKBOTH)))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue