Fixes ghosts always seeing bolded emotes. (#8766)

This commit is contained in:
Matt Atlas
2020-04-28 09:12:39 +02:00
committed by GitHub
parent f6f8271729
commit b5c9a07bb1
2 changed files with 46 additions and 3 deletions
+5 -3
View File
@@ -57,6 +57,7 @@
var/list/messageturfs = list()//List of turfs we broadcast to.
var/list/messagemobs = list()
var/list/ghosts = list()
var/list/ghosts_nearby = list()
var/hearing_aid = FALSE
if(type == 2 && ishuman(src))
@@ -71,7 +72,7 @@
continue
if(get_turf(M) in messageturfs)
if (isobserver(M))
ghosts += M
ghosts_nearby += M
continue
else if (isliving(M) && !(type == 2 && ((sdisabilities & DEAF) && !hearing_aid) || ear_deaf > 1))
messagemobs += M
@@ -83,7 +84,8 @@
for (var/mob/N in messagemobs)
N.show_message(message, type)
message = "<B>[message]</B>"
for(var/mob/O in ghosts)
O.show_message("[ghost_follow_link(src, O)] [message]", type)
for(var/mob/GN in ghosts_nearby)
GN.show_message("[ghost_follow_link(src, GN)] <b>[message]</b>", type)