mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-01-30 13:20:52 +00:00
- Be more concise for WRF_NoFire in A_WeaponReady.
SVN r4043 (trunk)
This commit is contained in:
parent
9d43ba39fc
commit
1c999d9d55
1 changed files with 2 additions and 3 deletions
|
@ -566,9 +566,8 @@ DEFINE_ACTION_FUNCTION_PARAMS(AInventory, A_WeaponReady)
|
||||||
ACTION_PARAM_INT(paramflags, 0);
|
ACTION_PARAM_INT(paramflags, 0);
|
||||||
|
|
||||||
if (!(paramflags & WRF_NoSwitch)) DoReadyWeaponToSwitch(self);
|
if (!(paramflags & WRF_NoSwitch)) DoReadyWeaponToSwitch(self);
|
||||||
if ((paramflags & WRF_NoFire) != WRF_NoFire) DoReadyWeaponToFire(self,
|
if (!(paramflags & WRF_NoFire)) DoReadyWeaponToFire(self, !(paramflags & WRF_NoPrimary), !(paramflags & WRF_NoSecondary));
|
||||||
(!(paramflags & WRF_NoPrimary)), (!(paramflags & WRF_NoSecondary)));
|
if (!(paramflags & WRF_NoBob)) DoReadyWeaponToBob(self);
|
||||||
if (!(paramflags & WRF_NoBob)) DoReadyWeaponToBob(self);
|
|
||||||
if ((paramflags & WRF_AllowReload)) DoReadyWeaponToReload(self);
|
if ((paramflags & WRF_AllowReload)) DoReadyWeaponToReload(self);
|
||||||
if ((paramflags & WRF_AllowZoom)) DoReadyWeaponToZoom(self);
|
if ((paramflags & WRF_AllowZoom)) DoReadyWeaponToZoom(self);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue