From be103bd9dc02e6d327414bb4b3d580a82827a5ad Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Fri, 7 Jan 2022 00:39:22 +0100 Subject: [PATCH] - fixed: the powerup item for respawn invulnerability was never given to the player. --- wadsrc/static/zscript/actors/player/player.zs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wadsrc/static/zscript/actors/player/player.zs b/wadsrc/static/zscript/actors/player/player.zs index be17e160b..e3f4cc354 100644 --- a/wadsrc/static/zscript/actors/player/player.zs +++ b/wadsrc/static/zscript/actors/player/player.zs @@ -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 } }