From eaa13ba9bdb2dc27123e77eaf23bf9cb5578e989 Mon Sep 17 00:00:00 2001 From: "baloh.matevz" Date: Sun, 29 Jul 2012 04:50:23 +0000 Subject: [PATCH] - Fixed the bug which made lights not use power. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4211 316c924e-a436-60f5-8080-3fe189b3f50e --- code/modules/power/lighting.dm | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/code/modules/power/lighting.dm b/code/modules/power/lighting.dm index 49f7f639722..f3e1357faef 100644 --- a/code/modules/power/lighting.dm +++ b/code/modules/power/lighting.dm @@ -573,14 +573,11 @@ // timed process // use power -/* #define LIGHTING_POWER_FACTOR 20 //20W per unit luminosity /obj/machinery/light/process() - return -// if(on) -// use_power(luminosity * LIGHTING_POWER_FACTOR, LIGHT) -*/ + if(on) + use_power(luminosity * LIGHTING_POWER_FACTOR, LIGHT) // called when area power state changes /obj/machinery/light/power_change()