From c6f987eb4e57476ec242cce6262ef7534822fc7c Mon Sep 17 00:00:00 2001 From: vuonojenmustaturska Date: Sun, 23 Sep 2018 19:35:44 +0300 Subject: [PATCH] copypasta (#40427) --- code/modules/atmospherics/gasmixtures/gas_mixture.dm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/code/modules/atmospherics/gasmixtures/gas_mixture.dm b/code/modules/atmospherics/gasmixtures/gas_mixture.dm index 097579dbccf..b0b757f5d31 100644 --- a/code/modules/atmospherics/gasmixtures/gas_mixture.dm +++ b/code/modules/atmospherics/gasmixtures/gas_mixture.dm @@ -81,8 +81,12 @@ GLOBAL_LIST_INIT(gaslist_cache, init_gaslist_cache()) var/gas_data = cached_gases[id] . += gas_data[data] * gas_data[GAS_META][META_GAS_SPECIFIC_HEAT] -/datum/gas_mixture/turf/heat_capacity() - . = ..() +/datum/gas_mixture/turf/heat_capacity(data = MOLES) // Same as above except vacuums return HEAT_CAPACITY_VACUUM + var/list/cached_gases = gases + . = 0 + for(var/id in cached_gases) + var/gas_data = cached_gases[id] + . += gas_data[data] * gas_data[GAS_META][META_GAS_SPECIFIC_HEAT] if(!.) . += HEAT_CAPACITY_VACUUM //we want vacuums in turfs to have the same heat capacity as space