From f55b70e1754e892e2f7694bf7d063947d2a7ca5a Mon Sep 17 00:00:00 2001 From: duncathan Date: Thu, 28 May 2015 22:06:58 -0600 Subject: [PATCH] fixes passive gates not colouring --- .../components/binary_devices/passive_gate.dm | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/code/ATMOSPHERICS/components/binary_devices/passive_gate.dm b/code/ATMOSPHERICS/components/binary_devices/passive_gate.dm index c9429803684..a3172a3b4af 100644 --- a/code/ATMOSPHERICS/components/binary_devices/passive_gate.dm +++ b/code/ATMOSPHERICS/components/binary_devices/passive_gate.dm @@ -28,9 +28,12 @@ Passive gate is similar to the regular pump except: ..() /obj/machinery/atmospherics/binary/passive_gate/update_icon_nopipes() - overlays.Cut() - if(on & !(stat & NOPOWER)) - overlays += getpipeimage('icons/obj/atmospherics/binary_devices.dmi', "passgate_on") + if(!on) + icon_state = "passgate_off" + overlays.Cut() + return + + overlays += getpipeimage('icons/obj/atmospherics/binary_devices.dmi', "passgate_on") /obj/machinery/atmospherics/binary/passive_gate/process_atmos() ..()