]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
fix: ghosts shouldn't see whisper obfuscation (#38202)
authorPerry Fraser <perryprog@users.noreply.github.com>
Mon, 14 Jul 2025 07:30:53 +0000 (03:30 -0400)
committerGitHub <noreply@github.com>
Mon, 14 Jul 2025 07:30:53 +0000 (00:30 -0700)
Content.Server/Chat/Systems/ChatSystem.cs

index e0e6273f77e1c409d1b33d17fcf3addeea8401d7..0b3a9c0a662b131b1e8b31d5d186e3fa0bb14c91 100644 (file)
@@ -535,7 +535,7 @@ public sealed partial class ChatSystem : SharedChatSystem
             if (MessageRangeCheck(session, data, range) != MessageRangeCheckResult.Full)
                 continue; // Won't get logged to chat, and ghosts are too far away to see the pop-up, so we just won't send it to them.
 
-            if (data.Range <= WhisperClearRange)
+            if (data.Range <= WhisperClearRange || data.Observer)
                 _chatManager.ChatMessageToOne(ChatChannel.Whisper, message, wrappedMessage, source, false, session.Channel);
             //If listener is too far, they only hear fragments of the message
             else if (_examineSystem.InRangeUnOccluded(source, listener, WhisperMuffledRange))