Added autoSwitch parameter to A_ReFire
This commit is contained in:
parent
72f9c0f9b7
commit
7ad2111bed
1 changed files with 2 additions and 2 deletions
|
|
@ -413,7 +413,7 @@ class StateProvider : Inventory
|
|||
//
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
action void A_ReFire(statelabel flash = null)
|
||||
action void A_ReFire(statelabel flash = null, bool autoSwitch = true)
|
||||
{
|
||||
let player = player;
|
||||
bool pending;
|
||||
|
|
@ -438,7 +438,7 @@ class StateProvider : Inventory
|
|||
else
|
||||
{
|
||||
player.refire = 0;
|
||||
player.ReadyWeapon.CheckAmmo (player.ReadyWeapon.bAltFire? Weapon.AltFire : Weapon.PrimaryFire, true);
|
||||
player.ReadyWeapon.CheckAmmo (player.ReadyWeapon.bAltFire? Weapon.AltFire : Weapon.PrimaryFire, autoSwitch);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue