Skip to content
This repository has been archived by the owner on Oct 25, 2023. It is now read-only.

Commit

Permalink
Fix chat bubbles not appearing in replays. (#18317) (#104)
Browse files Browse the repository at this point in the history
Co-authored-by: Leon Friedrich <60421075+ElectroJr@users.noreply.github.com>
  • Loading branch information
DebugOk and ElectroJr authored Jul 26, 2023
1 parent d1683af commit ba50e16
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Content.Client/Replay/ContentReplayPlaybackManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ private bool OnHandleReplayMessage(object message, bool skipEffects)
if (!_entMan.EntityExists(_player.LocalPlayer?.ControlledEntity))
_entMan.System<ReplaySpectatorSystem>().SetSpectatorPosition(default);
return true;
case ChatMessage chat:
_uiMan.GetUIController<ChatUIController>().ProcessChatMessage(chat, speechBubble: !skipEffects);
return true;
}

if (!skipEffects)
Expand All @@ -130,10 +133,6 @@ private bool OnHandleReplayMessage(object message, bool skipEffects)

switch (message)
{
case ChatMessage chat:
// Pass the chat message to the UI controller, skip the speech-bubble / pop-up.
_uiMan.GetUIController<ChatUIController>().ProcessChatMessage(chat, speechBubble: false);
return true;
case RoundEndMessageEvent:
case PopupEvent:
case AudioMessage:
Expand Down

0 comments on commit ba50e16

Please sign in to comment.