mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-04-10 12:03:50 +00:00
Added autoSwitch parameter to A_ReFire
This commit is contained in:
parent
6f3032dc54
commit
a0ab9ba25c
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…
Reference in a new issue