Merge pull request #13698 from MrStonedOne/patch-87

Cleans up turf/get_lumcount
This commit is contained in:
tkdrg
2015-12-17 20:22:09 -03:00
+2 -9
View File
@@ -342,17 +342,10 @@
lighting_changed = 0
/turf/proc/get_lumcount()
var/light_amount
if(!src || !istype(src))
return
. = LIGHTING_CAP
var/area/A = src.loc
if(!A || !istype(src))
return
if(IS_DYNAMIC_LIGHTING(A))
light_amount = src.lighting_lumcount
else
light_amount = LIGHTING_CAP
return light_amount
. = src.lighting_lumcount
/area
var/lighting_use_dynamic = DYNAMIC_LIGHTING_ENABLED //Turn this flag off to make the area fullbright