mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-01-18 23:52:02 +00:00
- fixed: the powerup item for respawn invulnerability was never given to the player.
This commit is contained in:
parent
32de663210
commit
be103bd9dc
1 changed files with 5 additions and 0 deletions
|
@ -254,6 +254,11 @@ class PlayerPawn : Actor
|
|||
invul.EffectTics = 3 * TICRATE;
|
||||
invul.BlendColor = 0; // don't mess with the view
|
||||
invul.bUndroppable = true; // Don't drop self
|
||||
if (!invul.CallTryPickup(self))
|
||||
{
|
||||
invul.Destroy();
|
||||
return;
|
||||
}
|
||||
bRespawnInvul = true; // [RH] special effect
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue