diff --git a/wadsrc/static/zscript/actors/inventory/stateprovider.zs b/wadsrc/static/zscript/actors/inventory/stateprovider.zs index e02287258..bba4adb3b 100644 --- a/wadsrc/static/zscript/actors/inventory/stateprovider.zs +++ b/wadsrc/static/zscript/actors/inventory/stateprovider.zs @@ -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); } }