From ae53c1e2d450bedd8673d4727fc473c87a865e4d Mon Sep 17 00:00:00 2001 From: cib Date: Fri, 15 Mar 2013 15:50:55 +0100 Subject: [PATCH] Shuttle doors now lock on transit. --- code/controllers/shuttle_controller.dm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/code/controllers/shuttle_controller.dm b/code/controllers/shuttle_controller.dm index 4468f476b2e..44f601f6a39 100644 --- a/code/controllers/shuttle_controller.dm +++ b/code/controllers/shuttle_controller.dm @@ -130,9 +130,10 @@ datum/shuttle_controller start_location.move_contents_to(end_location, null, NORTH) - for(var/obj/machinery/door/D in world) + for(var/obj/machinery/door/unpowered/D in world) if( get_area(D) == end_location ) spawn(0) + D.locked = 0 D.open() for(var/mob/M in end_location) @@ -291,9 +292,10 @@ datum/shuttle_controller // Just before it leaves, close the damn doors! if(timeleft == 2 || timeleft == 1) var/area/start_location = locate(/area/shuttle/escape/station) - for(var/obj/machinery/door/D in start_location) + for(var/obj/machinery/door/unpowered/shuttle/D in start_location) spawn(0) D.close() + D.locked = 1 if(timeleft>0) return 0