mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 23:02:08 +00:00
- Well, poo. WRF_NoFire is two bits, not just one.
SVN r4054 (trunk)
This commit is contained in:
parent
15497b4a24
commit
a2f55c8067
1 changed files with 6 additions and 6 deletions
|
@ -552,10 +552,10 @@ void DoReadyWeapon(AActor * self)
|
||||||
enum EWRF_Options
|
enum EWRF_Options
|
||||||
{
|
{
|
||||||
WRF_NoBob = 1,
|
WRF_NoBob = 1,
|
||||||
WRF_NoFire = 12,
|
|
||||||
WRF_NoSwitch = 2,
|
WRF_NoSwitch = 2,
|
||||||
WRF_NoPrimary = 4,
|
WRF_NoPrimary = 4,
|
||||||
WRF_NoSecondary = 8,
|
WRF_NoSecondary = 8,
|
||||||
|
WRF_NoFire = WRF_NoPrimary + WRF_NoSecondary,
|
||||||
WRF_AllowReload = 16,
|
WRF_AllowReload = 16,
|
||||||
WRF_AllowZoom = 32,
|
WRF_AllowZoom = 32,
|
||||||
};
|
};
|
||||||
|
@ -565,11 +565,11 @@ DEFINE_ACTION_FUNCTION_PARAMS(AInventory, A_WeaponReady)
|
||||||
ACTION_PARAM_START(1);
|
ACTION_PARAM_START(1);
|
||||||
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)) DoReadyWeaponToFire(self, !(paramflags & WRF_NoPrimary), !(paramflags & WRF_NoSecondary));
|
if ((paramflags & WRF_NoFire) != WRF_NoFire) DoReadyWeaponToFire(self, !(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