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
This commit is contained in:
Ccomp5950
2014-04-19 16:05:45 -04:00
committed by ZomgPonies
parent b5056c5441
commit a939b32020
@@ -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