From f05c394c3c8f542316e9b1aaee9474dd7a99fbce Mon Sep 17 00:00:00 2001 From: phil235 Date: Wed, 15 Jul 2015 21:35:02 +0200 Subject: [PATCH] Fixes airlock not closing super fast when timing wire is pulsed or disabled by AI. When the door safety is off, the door will not automatically reopen when it detects a mob on its tile. --- code/game/machinery/doors/airlock.dm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/code/game/machinery/doors/airlock.dm b/code/game/machinery/doors/airlock.dm index b1a3acba501..9c337abafae 100644 --- a/code/game/machinery/doors/airlock.dm +++ b/code/game/machinery/doors/airlock.dm @@ -1096,7 +1096,7 @@ About the new airlock wires panel: spawn(150) autoclose() else if(autoclose && !normalspeed) - spawn(5) + spawn(11) autoclose() return ..() @@ -1148,8 +1148,9 @@ About the new airlock wires panel: operating = 0 air_update_turf(1) update_freelook_sight() - if(locate(/mob/living) in get_turf(src)) - open() + if(safe) + if(locate(/mob/living) in get_turf(src)) + open() return 1 /obj/machinery/door/airlock/New()