From e0d69448222b43aaa1120bdc022f1bbcd85a50b4 Mon Sep 17 00:00:00 2001 From: Evelyn Gordon Date: Mon, 10 Mar 2025 08:28:08 -0400 Subject: [PATCH] Ensure speech bubble cap is always respected (#32223) Ensure speech bubble cap is respected, even when messages are sent very fast --- .../UserInterface/Systems/Chat/ChatUIController.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Content.Client/UserInterface/Systems/Chat/ChatUIController.cs b/Content.Client/UserInterface/Systems/Chat/ChatUIController.cs index 8f66340a30..8d96a5d670 100644 --- a/Content.Client/UserInterface/Systems/Chat/ChatUIController.cs +++ b/Content.Client/UserInterface/Systems/Chat/ChatUIController.cs @@ -467,8 +467,9 @@ public sealed class ChatUIController : UIController if (existing.Count > SpeechBubbleCap) { - // Get the oldest to start fading fast. - var last = existing[0]; + // Get the next speech bubble to fade + // Any speech bubbles before it are already fading + var last = existing[^(SpeechBubbleCap + 1)]; last.FadeNow(); } } -- 2.51.2