From 83d73392f9f3ac5f87452a6e5db2584e34c5aee9 Mon Sep 17 00:00:00 2001 From: Kyle Spier-Swenson Date: Mon, 25 Jan 2016 21:51:22 -0800 Subject: [PATCH] Fixes some nonoptimal code in pipenets. --- code/ATMOSPHERICS/pipeline.dm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/code/ATMOSPHERICS/pipeline.dm b/code/ATMOSPHERICS/pipeline.dm index aa65828231b..9a30d3936d9 100644 --- a/code/ATMOSPHERICS/pipeline.dm +++ b/code/ATMOSPHERICS/pipeline.dm @@ -220,11 +220,12 @@ var/pipenetwarnings = 10 total_thermal_energy += G.thermal_energy() total_heat_capacity += G.heat_capacity() - total_gas_mixture.temperature = total_heat_capacity ? total_thermal_energy/total_heat_capacity : 0 + total_gas_mixture.temperature = total_heat_capacity ? total_thermal_energy/total_heat_capacity : 0 if(total_gas_mixture.volume > 0) //Update individual gas_mixtures by volume ratio - for(var/datum/gas_mixture/G in GL) + for(var/i in GL) + var/datum/gas_mixture/G = i G.copy_from(total_gas_mixture) var/list/G_gases = G.gases for(var/id in G_gases)