Fixes the slow leak in arrivals (#25074)

* Fixes the slow leak in arrivals

* ree src
This commit is contained in:
Cyberboss
2017-03-16 20:19:37 +13:00
committed by oranges
parent 171a72ac52
commit a09e76285d
2 changed files with 8 additions and 12 deletions
+3 -11
View File
@@ -29,23 +29,15 @@
/atom/movable/light/onShuttleMove()
return 0
/obj/machinery/door/onShuttleMove()
. = ..()
if(!.)
return
INVOKE_ASYNC(src, .proc/close)
// Close any attached airlocks as well
for(var/obj/machinery/door/D in orange(1, src))
INVOKE_ASYNC(src, .proc/close)
/obj/machinery/door/airlock/onShuttleMove()
shuttledocked = 0
for(var/obj/machinery/door/airlock/A in orange(1, src))
for(var/obj/machinery/door/airlock/A in range(1, src))
A.shuttledocked = 0
A.air_tight = TRUE
INVOKE_ASYNC(A, /obj/machinery/door/.proc/close)
. = ..()
shuttledocked = 1
for(var/obj/machinery/door/airlock/A in orange(1, src))
for(var/obj/machinery/door/airlock/A in range(1, src))
A.shuttledocked = 1
/mob/onShuttleMove()
if(!move_on_shuttle)