Applied Arancalos fix for firedoors, no more process for them

This commit is contained in:
Chinsky
2013-10-10 14:14:48 +04:00
parent b96f9ef650
commit 6e07981e67

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()
latetoggle()
if(operating || stat & NOPOWER || !nextstate)
return
switch(nextstate)
if(OPEN)
spawn()
nextstate = null
open()
if(CLOSED)
spawn()
close()
nextstate = null
close()
return
open()
..()
latetoggle()
return
close()
..()
latetoggle()
return
do_animate(animation)
switch(animation)