From 4be2c28edbeb0be7919ebc50faa8a29b7141af85 Mon Sep 17 00:00:00 2001 From: Mark9013100 Date: Mon, 11 Apr 2016 12:48:26 -0400 Subject: [PATCH] Fixes cryocells dumping patients out without being asked to --- code/game/machinery/cryo.dm | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/code/game/machinery/cryo.dm b/code/game/machinery/cryo.dm index 48fea8a04a..6c4c6160cd 100644 --- a/code/game/machinery/cryo.dm +++ b/code/game/machinery/cryo.dm @@ -63,10 +63,9 @@ return 1 /obj/machinery/atmospherics/unary/cryo_cell/relaymove(mob/user as mob) - if(user.stat) - return - go_out() - return + // note that relaymove will also be called for mobs outside the cell with UI open + if(src.occupant == user && !user.stat) + go_out() /obj/machinery/atmospherics/unary/cryo_cell/attack_hand(mob/user) ui_interact(user)