From 49e4c8968fb219f2107808d7f34e4ec93d4d5dd9 Mon Sep 17 00:00:00 2001 From: Major Cooke Date: Sun, 14 May 2017 08:57:50 -0500 Subject: [PATCH] - Fixed: Powerups failed to expire when the EffectTics was set directly to 0 since the variable is always subtracted first before the check. --- wadsrc/static/zscript/inventory/powerups.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wadsrc/static/zscript/inventory/powerups.txt b/wadsrc/static/zscript/inventory/powerups.txt index 078647a23..6b8f39602 100644 --- a/wadsrc/static/zscript/inventory/powerups.txt +++ b/wadsrc/static/zscript/inventory/powerups.txt @@ -93,7 +93,7 @@ class Powerup : Inventory { Destroy (); } - if (EffectTics > 0 && --EffectTics == 0) + if (EffectTics == 0 || (EffectTics > 0 && --EffectTics == 0)) { Destroy (); }