From 98abc5bfc443391dbcb1ca3252ff55043b92cd8b Mon Sep 17 00:00:00 2001 From: Ccomp5950 Date: Wed, 23 Jul 2014 01:48:48 -0500 Subject: [PATCH] Compromise on speach_sound, will check distance instead of just checking if ghost. --- code/modules/mob/hear_say.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/mob/hear_say.dm b/code/modules/mob/hear_say.dm index 7ccffd0fc0..221863ce3c 100644 --- a/code/modules/mob/hear_say.dm +++ b/code/modules/mob/hear_say.dm @@ -55,7 +55,7 @@ src << "[speaker_name][alt_name] talks but you cannot hear \him." else src << "[speaker_name][alt_name] [track][verb], \"[message]\"" - if (speech_sound && !istype(src, /mob/dead/observer)) + if (speech_sound && (get_dist(speaker, src) <= world.view && src.z == speaker.z)) var/turf/source = speaker? get_turf(speaker) : get_turf(src) src.playsound_local(source, speech_sound, sound_vol, 1)