Alarm runtime fixes.

This commit is contained in:
Erthilo
2013-09-02 17:45:38 +01:00
parent 1e499d8994
commit 9633dd9073
+2 -1
View File
@@ -181,7 +181,8 @@
if(target_temperature < T0C + MIN_TEMPERATURE)
target_temperature = T0C + MIN_TEMPERATURE
var/datum/gas_mixture/gas = location.remove_air(0.25*environment.total_moles)
var/datum/gas_mixture/gas
gas = location.remove_air(0.25*environment.total_moles)
var/heat_capacity = gas.heat_capacity()
var/energy_used = max( abs( heat_capacity*(gas.temperature - target_temperature) ), MAX_ENERGY_CHANGE)