Fixes numerous bugs from the Runtimes topic, more sanity checking on pipes and atmos stuff for the new FEA.

This commit is contained in:
SkyMarshal
2012-05-13 13:52:40 -07:00
parent 2c08c02099
commit bdc0de5fd0
10 changed files with 55 additions and 35 deletions
@@ -42,6 +42,7 @@ obj/machinery/atmospherics/unary/oxygen_generator
air_contents.temperature = (current_heat_capacity*air_contents.temperature + 20*added_oxygen*T0C)/(current_heat_capacity+20*added_oxygen)
air_contents.oxygen += added_oxygen
air_contents.update_values()
if(network)
network.update = 1
@@ -124,6 +124,7 @@
//Remix the resulting gases
filtered_out.update_values()
removed.update_values()
air_contents.merge(filtered_out)
loc.assume_air(removed)
+1
View File
@@ -50,6 +50,7 @@ datum/pipeline
member.air_temporary.trace_gases += corresponding
corresponding.moles = trace_gas.moles*member.volume/air.volume
member.air_temporary.update_values()
proc/build_pipeline(obj/machinery/atmospherics/pipe/base)
air = new
+1
View File
@@ -341,6 +341,7 @@ obj/machinery/atmospherics/pipe
New()
initialize_directions = dir
air_temporary.update_values()
..()
process()