From ff35ea9ac7e76972a56369427b7464c972a0287e Mon Sep 17 00:00:00 2001 From: nashmuhandes Date: Tue, 27 Apr 2021 05:42:28 +0800 Subject: [PATCH] Don't print the weapon tag if the game is paused --- src/g_game.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/g_game.cpp b/src/g_game.cpp index bebff022c..836481e99 100644 --- a/src/g_game.cpp +++ b/src/g_game.cpp @@ -319,7 +319,7 @@ CCMD (slot) } // [Nash] Option to display the name of the weapon being switched to. - if (players[consoleplayer].playerstate != PST_LIVE) return; + if ((paused || pauseext) || players[consoleplayer].playerstate != PST_LIVE) return; if (SendItemUse != players[consoleplayer].ReadyWeapon && (displaynametags & 2) && StatusBar && SmallFont && SendItemUse) { StatusBar->AttachMessage(Create(nullptr, SendItemUse->GetTag(), @@ -368,7 +368,7 @@ CCMD (weapnext) } // [BC] Option to display the name of the weapon being cycled to. - if (players[consoleplayer].playerstate != PST_LIVE) return; + if ((paused || pauseext) || players[consoleplayer].playerstate != PST_LIVE) return; if ((displaynametags & 2) && StatusBar && SmallFont && SendItemUse) { StatusBar->AttachMessage(Create(nullptr, SendItemUse->GetTag(), @@ -395,7 +395,7 @@ CCMD (weapprev) } // [BC] Option to display the name of the weapon being cycled to. - if (players[consoleplayer].playerstate != PST_LIVE) return; + if ((paused || pauseext) || players[consoleplayer].playerstate != PST_LIVE) return; if ((displaynametags & 2) && StatusBar && SmallFont && SendItemUse) { StatusBar->AttachMessage(Create(nullptr, SendItemUse->GetTag(),