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
+5 -1
View File
@@ -89,6 +89,8 @@ var/list/airlock_overlays = list()
explosion_block = 1
hud_possible = list(DIAG_AIRLOCK_HUD)
var/air_tight = FALSE //TRUE means density will be set as soon as the door begins to close
/obj/machinery/door/airlock/Initialize()
..()
wires = new /datum/wires/airlock(src)
@@ -1321,8 +1323,10 @@ var/list/airlock_overlays = list()
operating = 1
update_icon(AIRLOCK_CLOSING, 1)
src.layer = CLOSED_DOOR_LAYER
if(air_tight)
density = TRUE
sleep(5)
src.density = 1
density = TRUE
if(!safe)
crush()
sleep(9)
+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)