Fix messages not being bolded for nearby ghosts if the speaker is inside a location (held pAIs, inside exosuits, etc) (#18848)

Title. Performance concerns here, since this is called for each observer
each time a message is sent. Not sure if get_area or get_turf is more
performant.

May not be worth it if it effects performance.
This commit is contained in:
AlaunusLux
2024-04-05 22:33:14 +00:00
committed by GitHub
parent 6fef78f1ec
commit 859c412d4b
2 changed files with 42 additions and 1 deletions
+1 -1
View File
@@ -51,7 +51,7 @@
if(speaker_name != speaker.real_name && speaker.real_name)
speaker_name = "[speaker.real_name] ([speaker_name])"
track = "[ghost_follow_link(speaker, src)] "
if((client.prefs.toggles & CHAT_GHOSTEARS) && (speaker in view(src)))
if((client.prefs.toggles & CHAT_GHOSTEARS) && (get_turf(speaker) in view(src)))
message = "<b>[message]</b>"
if(isdeaf(src))