From 49f2a38799802c78e77e1bc0e3c415b6c0d3dae6 Mon Sep 17 00:00:00 2001 From: Major Cooke Date: Sat, 1 Dec 2018 20:27:04 -0600 Subject: [PATCH] Fixed A_JumpIfNoAmmo not working. --- wadsrc/static/zscript/inventory/stateprovider.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wadsrc/static/zscript/inventory/stateprovider.txt b/wadsrc/static/zscript/inventory/stateprovider.txt index 5e1b715ba..f8c1b1036 100644 --- a/wadsrc/static/zscript/inventory/stateprovider.txt +++ b/wadsrc/static/zscript/inventory/stateprovider.txt @@ -10,7 +10,7 @@ class StateProvider : Inventory action state A_JumpIfNoAmmo(statelabel label) { if (stateinfo == null || stateinfo.mStateType != STATE_Psprite || player == null || player.ReadyWeapon == null || - !player.ReadyWeapon.CheckAmmo(player.ReadyWeapon.bAltFire, false, true)) + player.ReadyWeapon.CheckAmmo(player.ReadyWeapon.bAltFire, false, true)) { return null; }