DEADSOFTWARE

Player: Don't show chat bubble for invisible players
authorStas'M <x86corez@gmail.com>
Sun, 27 Jan 2019 20:42:03 +0000 (23:42 +0300)
committerStas'M <x86corez@gmail.com>
Sun, 27 Jan 2019 20:42:03 +0000 (23:42 +0300)
http://doom2d.org/forum/viewtopic.php?f=36&t=2607

src/game/g_player.pas

index dc80fdd1770a68dfa16053c1171136045c457290..965d5d23adb33dc2184168564d45b25a46ffa2f0 100644 (file)
@@ -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