restores safety check in gas mixture temperature_share() (#31726)

This commit is contained in:
duncathan salt
2017-10-14 14:52:38 -06:00
committed by CitadelStationBot
parent b200389630
commit b840605cb6
@@ -371,8 +371,8 @@ GLOBAL_LIST_INIT(gaslist_cache, init_gaslist_cache())
var/heat = conduction_coefficient*temperature_delta* \
(self_heat_capacity*sharer_heat_capacity/(self_heat_capacity+sharer_heat_capacity))
temperature -= heat/self_heat_capacity
sharer_temperature += heat/sharer_heat_capacity
temperature = max(temperature + heat/self_heat_capacity, TCMB)
sharer_temperature = max(sharer_temperature - heat/sharer_heat_capacity, TCMB)
if(sharer)
sharer.temperature = sharer_temperature
return sharer_temperature