Fixes quitting pods not handling belly contents.

-Basically fixes the actually visible bug of ID-containing PDAs in bellies pooping their IDs on the floor when the pred leaves by cryo/tp/tram.
This commit is contained in:
Verkister
2018-12-09 13:43:33 +02:00
committed by GitHub
parent 5fe51f64ad
commit c59ee70fe5

View File

@@ -391,6 +391,13 @@
var/obj/belly/B = belly
for(var/mob/living/sub_L in B)
despawn_occupant(sub_L)
for(var/obj/item/W in B)
W.forceMove(src)
if(W.contents.len)
for(var/obj/item/O in W.contents)
if(istype(O,/obj/item/weapon/storage/internal))
continue
O.forceMove(src)
if(ishuman(to_despawn))
var/mob/living/carbon/human/H = to_despawn
if(H.nif)