Merge pull request #4159 from Citadel-Station-13/upstream-merge-33140

[MIRROR] Check door for (welded) upon closing
This commit is contained in:
deathride58
2017-11-29 03:26:03 +00:00
committed by GitHub
+3
View File
@@ -255,12 +255,15 @@
return 1
if(operating)
return
if(welded)
return
if(safe)
for(var/atom/movable/M in get_turf(src))
if(M.density && M != src) //something is blocking the door
if(autoclose)
addtimer(CALLBACK(src, .proc/autoclose), 60)
return
operating = TRUE
do_animate("closing")