General fixes

This commit is contained in:
Aronai Sieyes
2020-05-20 13:54:49 -04:00
parent 49c00572c9
commit 1a3f9cc3ee
2 changed files with 2 additions and 1 deletions

View File

@@ -42,6 +42,7 @@ SUBSYSTEM_DEF(mobs)
if(!M || QDELETED(M)) if(!M || QDELETED(M))
mob_list -= M mob_list -= M
continue
else if(M.low_priority && !(process_z[get_z(M)])) else if(M.low_priority && !(process_z[get_z(M)]))
slept_mobs++ slept_mobs++
continue continue

View File

@@ -12,7 +12,7 @@
for(var/obj/item/organ/I in internal_organs) for(var/obj/item/organ/I in internal_organs)
I.removed() I.removed()
if(istype(loc,/turf)) if(isturf(I?.loc)) // Some organs qdel themselves or other things when removed
I.throw_at(get_edge_target_turf(src,pick(alldirs)),rand(1,3),30) I.throw_at(get_edge_target_turf(src,pick(alldirs)),rand(1,3),30)
for(var/obj/item/organ/external/E in src.organs) for(var/obj/item/organ/external/E in src.organs)