From 55a36bbff1a3c2806ff28011e92a7106e143bae8 Mon Sep 17 00:00:00 2001 From: Fox-McCloud Date: Mon, 14 Mar 2016 15:03:14 -0400 Subject: [PATCH] isturf --- code/modules/mob/living/carbon/carbon.dm | 2 +- code/modules/mob/living/carbon/human/death.dm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/code/modules/mob/living/carbon/carbon.dm b/code/modules/mob/living/carbon/carbon.dm index 44c6dac9fe1..a6f57fe5150 100644 --- a/code/modules/mob/living/carbon/carbon.dm +++ b/code/modules/mob/living/carbon/carbon.dm @@ -94,7 +94,7 @@ /mob/living/carbon/gib() for(var/obj/item/organ/internal/I in internal_organs) - if(istype(loc,/turf)) + if(isturf(loc)) I.remove(src) I.forceMove(get_turf(src)) spawn() diff --git a/code/modules/mob/living/carbon/human/death.dm b/code/modules/mob/living/carbon/human/death.dm index 62ec059dd9a..589331a7c01 100644 --- a/code/modules/mob/living/carbon/human/death.dm +++ b/code/modules/mob/living/carbon/human/death.dm @@ -14,7 +14,7 @@ playsound(src.loc, 'sound/goonstation/effects/gib.ogg', 50, 1) for(var/obj/item/organ/internal/I in internal_organs) - if(istype(loc,/turf)) + if(isturf(loc)) I.remove(src) I.forceMove(get_turf(src)) spawn()