Merge pull request #3747 from comma/master

Applied Arancalos fix for firedoors, no more process for them
This commit is contained in:
Mloc
2013-10-10 03:48:20 -07:00
+16 -7
View File
@@ -70,6 +70,7 @@
power_change()
if(powered(ENVIRON))
stat &= ~NOPOWER
latetoggle()
else
stat |= NOPOWER
return
@@ -197,19 +198,27 @@
nextstate = CLOSED
process()
proc/latetoggle()
if(operating || stat & NOPOWER || !nextstate)
return
switch(nextstate)
if(OPEN)
spawn()
open()
nextstate = null
open()
if(CLOSED)
spawn()
close()
nextstate = null
nextstate = null
close()
return
open()
..()
latetoggle()
return
close()
..()
latetoggle()
return
do_animate(animation)
switch(animation)
@@ -276,4 +285,4 @@
/obj/machinery/door/firedoor/multi_tile
icon = 'icons/obj/doors/DoorHazard2x1.dmi'
width = 2
width = 2