Scrubbers now respect air alarm settings.

Scrubbers only worked when there was CO2, Toxins, or trace gasses in the
atmosphere, ignoring settings on the Air Alarm.
This commit fixes that and makes the scrubber respect the settings.
This commit is contained in:
Scriblon
2016-10-22 15:25:44 +02:00
parent 9995e52932
commit 1f26c67031
@@ -213,7 +213,7 @@
var/datum/gas_mixture/environment = tile.return_air()
if(scrubbing)
if((environment.toxins>0.001) || (environment.carbon_dioxide>0.001) || (environment.trace_gases.len>0))
if((scrub_O2 && environment.oxygen>0.001) || (scrub_N2 && environment.nitrogen>0.001) || (scrub_CO2 && environment.carbon_dioxide>0.001) || (scrub_Toxins && environment.toxins>0.001) || (environment.trace_gases.len>0))
var/transfer_moles = min(1, volume_rate/environment.volume)*environment.total_moles()
//Take a gas sample