- Fixed: Powerups failed to expire when the EffectTics was set directly to 0 since the variable is always subtracted first before the check.

This commit is contained in:
Major Cooke 2017-05-14 08:57:50 -05:00 committed by Christoph Oelckers
parent 6a34092742
commit 49e4c8968f

View file

@ -93,7 +93,7 @@ class Powerup : Inventory
{
Destroy ();
}
if (EffectTics > 0 && --EffectTics == 0)
if (EffectTics == 0 || (EffectTics > 0 && --EffectTics == 0))
{
Destroy ();
}