From: Stas'M Date: Sun, 27 Jan 2019 20:42:03 +0000 (+0300) Subject: Player: Don't show chat bubble for invisible players X-Git-Url: http://deadsoftware.ru/gitweb?p=d2df-sdl.git;a=commitdiff_plain;h=f1c498dd1ce66077d3140b0958176be31a44e018 Player: Don't show chat bubble for invisible players http://doom2d.org/forum/viewtopic.php?f=36&t=2607 --- 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