From 9633dd907310dff5397df3f81aa2c1f12f22a1d4 Mon Sep 17 00:00:00 2001 From: Erthilo Date: Mon, 2 Sep 2013 17:45:38 +0100 Subject: [PATCH] Alarm runtime fixes. --- code/game/machinery/alarm.dm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/game/machinery/alarm.dm b/code/game/machinery/alarm.dm index ea2456cf977..300d62745c0 100644 --- a/code/game/machinery/alarm.dm +++ b/code/game/machinery/alarm.dm @@ -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)