From: Evelyn Gordon Date: Mon, 10 Mar 2025 12:28:08 +0000 (-0400) Subject: Ensure speech bubble cap is always respected (#32223) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=e0d69448222b43aaa1120bdc022f1bbcd85a50b4;p=space-station-14.git Ensure speech bubble cap is always respected (#32223) Ensure speech bubble cap is respected, even when messages are sent very fast --- 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(); } }