From a939b3202091fb4bda357c6ddec2d428939844ef Mon Sep 17 00:00:00 2001 From: Ccomp5950 Date: Fri, 4 Apr 2014 13:21:47 -0500 Subject: [PATCH] Code Effeciency Project: Vent scrubbers have a bit more sanity. No longer checking for 0.00000000000000000000000001 moles of toxins scrubers can only detect stuff worse then 0.001 moles. Have a nice day. Conflicts: code/ATMOSPHERICS/components/unary/vent_scrubber.dm --- code/ATMOSPHERICS/components/unary/vent_scrubber.dm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/ATMOSPHERICS/components/unary/vent_scrubber.dm b/code/ATMOSPHERICS/components/unary/vent_scrubber.dm index b812b9f9eca..0e4a913097d 100644 --- a/code/ATMOSPHERICS/components/unary/vent_scrubber.dm +++ b/code/ATMOSPHERICS/components/unary/vent_scrubber.dm @@ -116,10 +116,10 @@ if(scrubbing) // Are we scrubbing gasses that are present? if(\ - (scrub_Toxins && environment.toxins > 0) ||\ - (scrub_CO2 && environment.carbon_dioxide > 0) ||\ + (scrub_Toxins && environment.toxins > 0.001) ||\ + (scrub_CO2 && environment.carbon_dioxide > 0.001) ||\ (scrub_N2O && environment.trace_gases.len > 0) ||\ - (scrub_O2 && environment.oxygen > 0)) + (scrub_O2 && environment.oxygen > 0.001)) var/transfer_moles = min(1, volume_rate/environment.volume)*environment.total_moles() //Take a gas sample