Cleans up turf/get_lumcount

I'm going to just declare that any case where a turf's loc isn't an area to be a bug that lighting code shouldn't be hiding
This commit is contained in:
Kyle Spier-Swenson
2015-12-16 03:19:17 -08:00
parent bdf0102976
commit e5b6078bc4
+1 -8
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
/area
var/lighting_use_dynamic = DYNAMIC_LIGHTING_ENABLED //Turn this flag off to make the area fullbright