mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-23 12:08:28 +01:00
Merge pull request #3747 from comma/master
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()
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user