From f954df7a0037464b6452b29ec1b5be56eda4d097 Mon Sep 17 00:00:00 2001 From: nashmuhandes Date: Wed, 25 Mar 2020 21:15:55 +0800 Subject: [PATCH] Don't draw weapon tags when player tries to switch weapons while they're dead --- src/g_game.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/g_game.cpp b/src/g_game.cpp index fa5405d3e..300e4bb35 100644 --- a/src/g_game.cpp +++ b/src/g_game.cpp @@ -315,6 +315,7 @@ CCMD (slot) } // [Nash] Option to display the name of the weapon being switched to. + if (players[consoleplayer].playerstate != PST_LIVE) return; if (SendItemUse != players[consoleplayer].ReadyWeapon && (displaynametags & 2) && StatusBar && SmallFont && SendItemUse) { StatusBar->AttachMessage(Create(nullptr, SendItemUse->GetTag(), @@ -363,6 +364,7 @@ CCMD (weapnext) } // [BC] Option to display the name of the weapon being cycled to. + if (players[consoleplayer].playerstate != PST_LIVE) return; if ((displaynametags & 2) && StatusBar && SmallFont && SendItemUse) { StatusBar->AttachMessage(Create(nullptr, SendItemUse->GetTag(), @@ -389,6 +391,7 @@ CCMD (weapprev) } // [BC] Option to display the name of the weapon being cycled to. + if (players[consoleplayer].playerstate != PST_LIVE) return; if ((displaynametags & 2) && StatusBar && SmallFont && SendItemUse) { StatusBar->AttachMessage(Create(nullptr, SendItemUse->GetTag(),