- Fixed the bug which made lights not use power.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4211 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
baloh.matevz
2012-07-29 04:50:23 +00:00
parent cfd5cff352
commit eaa13ba9bd
+2 -5
View File
@@ -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()