From cb89c1c5dc3362374d91c98480b6ce1bdcb52dd7 Mon Sep 17 00:00:00 2001 From: Leon Friedrich <60421075+ElectroJr@users.noreply.github.com> Date: Wed, 26 Jul 2023 19:11:14 +1200 Subject: [PATCH] Fix chat bubbles not appearing in replays. (#18317) --- Content.Client/Replay/ContentReplayPlaybackManager.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Content.Client/Replay/ContentReplayPlaybackManager.cs b/Content.Client/Replay/ContentReplayPlaybackManager.cs index 16cdfb79fe..55491429ea 100644 --- a/Content.Client/Replay/ContentReplayPlaybackManager.cs +++ b/Content.Client/Replay/ContentReplayPlaybackManager.cs @@ -120,6 +120,9 @@ public sealed class ContentReplayPlaybackManager if (!_entMan.EntityExists(_player.LocalPlayer?.ControlledEntity)) _entMan.System().SetSpectatorPosition(default); return true; + case ChatMessage chat: + _uiMan.GetUIController().ProcessChatMessage(chat, speechBubble: !skipEffects); + return true; } if (!skipEffects) @@ -130,10 +133,6 @@ public sealed class ContentReplayPlaybackManager switch (message) { - case ChatMessage chat: - // Pass the chat message to the UI controller, skip the speech-bubble / pop-up. - _uiMan.GetUIController().ProcessChatMessage(chat, speechBubble: false); - return true; case RoundEndMessageEvent: case PopupEvent: case AudioMessage: