mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-28 23:11:58 +00:00
- fixed: PlayerPawn.GetEffectTicsForItem read the duration from the wrong actor.
This commit is contained in:
parent
a5f417b1e5
commit
075cce98c4
1 changed files with 1 additions and 1 deletions
|
@ -126,7 +126,7 @@ class PlayerPawn : Actor native
|
|||
let powerup = Powerup(FindInventory(powerupType));
|
||||
if(powerup != null)
|
||||
{
|
||||
let maxtics = GetDefaultByType(powerupType).EffectTics;
|
||||
let maxtics = GetDefaultByType(pg).EffectTics;
|
||||
if (maxtics == 0) maxtics = powerup.default.EffectTics;
|
||||
return powerup.EffectTics, maxtics;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue