mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 18:31:17 +03:00
fix: ghosts shouldn't see whisper obfuscation (#38202)
This commit is contained in:
parent
229f33f22a
commit
bd853b60de
1 changed files with 1 additions and 1 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue