mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-28 23:11:58 +00:00
Don't draw weapon tags when player tries to switch weapons while they're dead
This commit is contained in:
parent
ecb3ff0977
commit
f954df7a00
1 changed files with 3 additions and 0 deletions
|
@ -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<DHUDMessageFadeOut>(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<DHUDMessageFadeOut>(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<DHUDMessageFadeOut>(nullptr, SendItemUse->GetTag(),
|
||||
|
|
Loading…
Reference in a new issue