From c0cddaac64b8fb9482e9138ebdc311eaf5e94054 Mon Sep 17 00:00:00 2001 From: Cyberboss Date: Tue, 14 Mar 2017 12:27:27 -0400 Subject: [PATCH] [s]Fixes being able to launch the arrivals shuttle by hiding in closets and bodybags (#24997) * Fixes being able to launch the arrivals shuttle with people on board * What he said * Life check --- code/modules/shuttle/arrivals.dm | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/code/modules/shuttle/arrivals.dm b/code/modules/shuttle/arrivals.dm index 5ce3af29e88..c8cd3ee11ad 100644 --- a/code/modules/shuttle/arrivals.dm +++ b/code/modules/shuttle/arrivals.dm @@ -111,11 +111,10 @@ return FALSE /obj/docking_port/mobile/arrivals/proc/PersonCheck() - for(var/A in areas) - for(var/mob/living/L in A) - //don't dock for braindead' - if(L.key && L.client && L.stat != DEAD) - return TRUE + for(var/M in (living_mob_list & player_list)) + var/mob/living/L = M + if((get_area(M) in areas) && L.stat != DEAD) + return TRUE return FALSE /obj/docking_port/mobile/arrivals/proc/SendToStation()