From d290ee4c6892a2d008bc6f2b74df9639d34d094e Mon Sep 17 00:00:00 2001 From: PsiOmega Date: Sun, 8 Mar 2015 13:22:45 +0100 Subject: [PATCH] Fixes #8398. Cryopods/cells that contains mobs will now drop them to the ground on deletion. --- code/game/machinery/cryo.dm | 5 +++++ code/game/machinery/cryopod.dm | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/code/game/machinery/cryo.dm b/code/game/machinery/cryo.dm index 32543822b99..ecf868f260b 100644 --- a/code/game/machinery/cryo.dm +++ b/code/game/machinery/cryo.dm @@ -24,6 +24,11 @@ ..() initialize_directions = dir +/obj/machinery/atmospherics/unary/cryo_cell/Del() + if(occupant) + occupant.loc = loc + ..() + /obj/machinery/atmospherics/unary/cryo_cell/initialize() if(node) return var/node_connect = dir diff --git a/code/game/machinery/cryopod.dm b/code/game/machinery/cryopod.dm index 381a9790fb6..5915aef5acc 100644 --- a/code/game/machinery/cryopod.dm +++ b/code/game/machinery/cryopod.dm @@ -234,6 +234,12 @@ ..() +/obj/machinery/cryopod/Del() + if(occupant) + occupant.loc = loc + occupant.resting = 1 + ..() + /obj/machinery/cryopod/initialize() ..()