Fix for ghost hearing.

This commit is contained in:
Segrain
2014-12-11 08:32:27 +03:00
parent 944800eee4
commit 0fc7177894

View File

@@ -11,7 +11,7 @@
//make sure the air can transmit speech - hearer's side
var/turf/T = get_turf(src)
if (T)
if ((T) && (!(istype(src, /mob/dead/observer)))) //Ghosts can hear even in vacuum.
var/datum/gas_mixture/environment = T.return_air()
var/pressure = (environment)? environment.return_pressure() : 0
if(pressure < SOUND_MINIMUM_PRESSURE && get_dist(speaker, src) > 1)