From fcc491f7351cb1732c5defd6641657b7d755bb91 Mon Sep 17 00:00:00 2001 From: Kyle Evans Date: Wed, 3 Dec 2014 17:04:47 -0500 Subject: [PATCH] Make the respawn invulnerability APowerInvulnerable persist through a ClearInventory by making it undroppable --- src/p_mobj.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/p_mobj.cpp b/src/p_mobj.cpp index 557f5fa94..c3593fc6e 100644 --- a/src/p_mobj.cpp +++ b/src/p_mobj.cpp @@ -4445,7 +4445,8 @@ APlayerPawn *P_SpawnPlayer (FPlayerStart *mthing, int playernum, int flags) { APowerup *invul = static_cast(p->mo->GiveInventoryType (RUNTIME_CLASS(APowerInvulnerable))); invul->EffectTics = 3*TICRATE; - invul->BlendColor = 0; // don't mess with the view + invul->BlendColor = 0; // don't mess with the view + invul->ItemFlags |= IF_UNDROPPABLE; // Don't drop this p->mo->effects |= FX_RESPAWNINVUL; // [RH] special effect }