mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-12 11:13:16 +00:00
Applied Arancalos fix for firedoors, no more process for them
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user