mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-24 05:30:05 +01:00
Fixes the slow leak in arrivals (#25074)
* Fixes the slow leak in arrivals * ree src
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user