mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-26 21:48:21 +01:00
Don't check side pressure if filter isn't.. filtering (#25019)
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user