From 172887da5089286b319dd830cfdc5f755bc64013 Mon Sep 17 00:00:00 2001 From: Migratingcocofruit <69551563+Migratingcocofruit@users.noreply.github.com> Date: Sat, 26 Apr 2025 21:19:43 +0300 Subject: [PATCH] Fixed filters and mixers operating with no power (#29050) --- .../machinery/components/trinary_devices/filter.dm | 2 +- .../machinery/components/trinary_devices/mixer.dm | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/code/modules/atmospherics/machinery/components/trinary_devices/filter.dm b/code/modules/atmospherics/machinery/components/trinary_devices/filter.dm index 16d1d05392e..02cc58cb03b 100644 --- a/code/modules/atmospherics/machinery/components/trinary_devices/filter.dm +++ b/code/modules/atmospherics/machinery/components/trinary_devices/filter.dm @@ -94,7 +94,7 @@ update_icon() /obj/machinery/atmospherics/trinary/filter/process_atmos() - if(!on) + if((stat & (NOPOWER|BROKEN)) || !on) return FALSE var/output_starting_pressure = air3.return_pressure() diff --git a/code/modules/atmospherics/machinery/components/trinary_devices/mixer.dm b/code/modules/atmospherics/machinery/components/trinary_devices/mixer.dm index 3a9a1ec72f6..9ab167b6a39 100644 --- a/code/modules/atmospherics/machinery/components/trinary_devices/mixer.dm +++ b/code/modules/atmospherics/machinery/components/trinary_devices/mixer.dm @@ -79,8 +79,8 @@ air3.volume = 300 /obj/machinery/atmospherics/trinary/mixer/process_atmos() - if(!on) - return 0 + if((stat & (NOPOWER|BROKEN)) || !on) + return FALSE var/output_starting_pressure = air3.return_pressure()