Skip to content

Commit

Permalink
- Fixed: Powerups failed to expire when the EffectTics was set direct…
Browse files Browse the repository at this point in the history
…ly to 0 since the variable is always subtracted first before the check.
  • Loading branch information
MajorCooke authored and coelckers committed May 14, 2017
1 parent 6a34092 commit 49e4c89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wadsrc/static/zscript/inventory/powerups.txt
Expand Up @@ -93,7 +93,7 @@ class Powerup : Inventory
{
Destroy ();
}
if (EffectTics > 0 && --EffectTics == 0)
if (EffectTics == 0 || (EffectTics > 0 && --EffectTics == 0))
{
Destroy ();
}
Expand Down

0 comments on commit 49e4c89

Please sign in to comment.