Fixed glass shard Crossed() behavior for cameras and ghosts

This commit is contained in:
vuonojenmustaturska
2017-12-12 17:43:46 +02:00
committed by GitHub
parent c23f101efb
commit 37e8cd977d
@@ -251,7 +251,7 @@ GLOBAL_LIST_INIT(prglass_recipes, list ( \
else
return ..()
/obj/item/shard/Crossed(mob/AM)
if(istype(AM) && has_gravity(loc))
/obj/item/shard/Crossed(mob/living/L)
if(istype(L) && has_gravity(loc))
playsound(loc, 'sound/effects/glass_step.ogg', 50, 1)
. = ..()