Lighting system is too buggy to continue until I know wtf is going on

Conflicts:
	baystation12.dme
	code/game/turfs/turf.dm
This commit is contained in:
Aryn
2014-02-28 17:47:50 -05:00
committed by ZomgPonies
parent d443734d60
commit 5b2f811b71
20 changed files with 167 additions and 97 deletions
+2 -2
View File
@@ -603,8 +603,8 @@
#define LIGHTING_POWER_FACTOR 20 //20W per unit luminosity
/obj/machinery/light/process()//TODO: remove/add this from machines to save on processing as needed ~Carn PRIORITY
if(on)
use_power(luminosity * LIGHTING_POWER_FACTOR, LIGHT)
if(on && light)
use_power(light.radius * LIGHTING_POWER_FACTOR, LIGHT)
// called when area power state changes
/obj/machinery/light/power_change()