Fixes a pair of null.z runtimes

Fixes explosions with multiz maps breaking if the epicenter is null
Fixes supermatter trying to irradiate mobs in nullspace crashing the proc
This commit is contained in:
GinjaNinja32
2015-06-06 02:23:06 +01:00
parent f163650cb2
commit fb1904ef4e
2 changed files with 6 additions and 5 deletions

View File

@@ -102,7 +102,8 @@
grav_pulling = 1
exploded = 1
for(var/mob/living/mob in living_mob_list)
if(loc.z == mob.loc.z)
var/turf/T = get_turf(mob)
if(T && (loc.z == T.z))
if(istype(mob, /mob/living/carbon/human))
//Hilariously enough, running into a closet should make you get hit the hardest.
var/mob/living/carbon/human/H = mob