From 7cd2ace5b2045b7ca7e730851e5890ad1a91c357 Mon Sep 17 00:00:00 2001 From: monster860 Date: Sun, 26 Jun 2016 13:59:03 -0400 Subject: [PATCH] Makes pulsing door wires non-blocking (#4781) --- code/datums/wires/airlock.dm | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/code/datums/wires/airlock.dm b/code/datums/wires/airlock.dm index 007917ded3d..181572b5753 100644 --- a/code/datums/wires/airlock.dm +++ b/code/datums/wires/airlock.dm @@ -107,7 +107,8 @@ var/const/AIRLOCK_WIRE_LIGHT = 2048 A.autoclose = mended if(mended) if(!A.density) - A.close() + spawn(0) + A.close() if(AIRLOCK_WIRE_LIGHT) A.lights = mended @@ -159,12 +160,16 @@ var/const/AIRLOCK_WIRE_LIGHT = 2048 //will succeed only if the ID wire is cut or the door requires no access and it's not emagged if(A.emagged) return if(!A.requiresID() || A.check_access(null)) - if(A.density) A.open() - else A.close() + spawn(0) + if(A.density) + A.open() + else + A.close() if(AIRLOCK_WIRE_SAFETY) A.safe = !A.safe if(!A.density) - A.close() + spawn(0) + A.close() if(AIRLOCK_WIRE_SPEED) A.normalspeed = !A.normalspeed