From f1c498dd1ce66077d3140b0958176be31a44e018 Mon Sep 17 00:00:00 2001 From: Stas'M Date: Sun, 27 Jan 2019 23:42:03 +0300 Subject: [PATCH] Player: Don't show chat bubble for invisible players http://doom2d.org/forum/viewtopic.php?f=36&t=2607 --- src/game/g_player.pas | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/game/g_player.pas b/src/game/g_player.pas index dc80fdd..965d5d2 100644 --- a/src/game/g_player.pas +++ b/src/game/g_player.pas @@ -2444,7 +2444,9 @@ begin end; if (gChatBubble > 0) and (FKeys[KEY_CHAT].Pressed) and not FGhost then - DrawBubble(); + if (FMegaRulez[MR_INVIS] <= gTime) or ((gPlayerDrawn <> nil) and ((Self = gPlayerDrawn) or + ((FTeam = gPlayerDrawn.Team) and (gGameSettings.GameMode <> GM_DM)))) then + DrawBubble(); // e_DrawPoint(5, 335, 288, 255, 0, 0); // DL, UR, DL, UR if gAimLine and alive and ((Self = gPlayer1) or (Self = gPlayer2)) then -- 2.29.2