Bugfix for doors not closing. Urgent!

This commit is contained in:
SkyMarshal
2012-01-28 18:26:51 -07:00
parent 42772d545e
commit 0eb23bfe3b
+2 -2
View File
@@ -299,12 +299,12 @@
var/held = 1
if(src.holdopen)
while(held == 1)
while(held == 1 && holdopen) //If it is no longer hold open, it should close.
sleep(held? 10:40)
held = 0
var/list/objects = locate(X,Y,Z)
for(var/obj/T in objects)
if(!istype(T,/obj/machinery/door))
if(!istype(T,/obj/machinery/door) && !(istype(T,/obj/machinery) && T.anchored == 1) && !istype(T,/obj/structure/cable) && !istype(T,/obj/structure/disposalpipe) && !(T.loc == get_turf(src)))
held = 1
for(var/mob/T in objects)
held = 1