mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 14:51:51 +00:00
- 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:
parent
6a34092742
commit
49e4c8968f
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ class Powerup : Inventory
|
|||
{
|
||||
Destroy ();
|
||||
}
|
||||
if (EffectTics > 0 && --EffectTics == 0)
|
||||
if (EffectTics == 0 || (EffectTics > 0 && --EffectTics == 0))
|
||||
{
|
||||
Destroy ();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue