diff --git a/code/modules/atmospherics/machinery/components/trinary_devices/filter.dm b/code/modules/atmospherics/machinery/components/trinary_devices/filter.dm index 2d3f2c5bc61..e90edf7cb6e 100644 --- a/code/modules/atmospherics/machinery/components/trinary_devices/filter.dm +++ b/code/modules/atmospherics/machinery/components/trinary_devices/filter.dm @@ -96,13 +96,13 @@ /obj/machinery/atmospherics/trinary/filter/process_atmos() ..() if(!on) - return 0 + return FALSE var/output_starting_pressure = air3.return_pressure() - if(output_starting_pressure >= target_pressure || air2.return_pressure() >= target_pressure) + if(output_starting_pressure >= target_pressure || (filter_type != FILTER_NOTHING && air2.return_pressure() >= target_pressure)) //No need to mix if target is already full! - return 1 + return TRUE //Calculate necessary moles to transfer using PV=nRT @@ -158,7 +158,7 @@ parent1.update = 1 - return 1 + return TRUE /obj/machinery/atmospherics/trinary/filter/attack_ghost(mob/user) ui_interact(user) diff --git a/code/modules/atmospherics/machinery/datum_pipeline.dm b/code/modules/atmospherics/machinery/datum_pipeline.dm index 3da561d9fcf..d5e091a5e1e 100644 --- a/code/modules/atmospherics/machinery/datum_pipeline.dm +++ b/code/modules/atmospherics/machinery/datum_pipeline.dm @@ -5,7 +5,7 @@ var/list/obj/machinery/atmospherics/pipe/members = list() var/list/obj/machinery/atmospherics/other_atmosmch = list() - var/update = 1 + var/update = TRUE /datum/pipeline/New() SSair.networks += src @@ -22,7 +22,7 @@ /datum/pipeline/process()//This use to be called called from the pipe networks if(update) - update = 0 + update = FALSE reconcile_air() return @@ -179,7 +179,7 @@ (partial_heat_capacity*target.heat_capacity/(partial_heat_capacity+target.heat_capacity)) air.temperature -= heat/total_heat_capacity - update = 1 + update = TRUE /datum/pipeline/proc/reconcile_air() var/list/datum/gas_mixture/GL = list()