DEADSOFTWARE

Player: Don't show chat bubble for invisible players
[d2df-sdl.git] / 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