From c59ee70fe5aa171ebb727d7e8fe65d97c11187be Mon Sep 17 00:00:00 2001 From: Verkister Date: Sun, 9 Dec 2018 13:43:33 +0200 Subject: [PATCH] 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. --- code/game/machinery/cryopod.dm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/code/game/machinery/cryopod.dm b/code/game/machinery/cryopod.dm index ffda46f7cf..91fe137e54 100644 --- a/code/game/machinery/cryopod.dm +++ b/code/game/machinery/cryopod.dm @@ -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)