diff --git a/code/modules/lighting/lighting_system.dm b/code/modules/lighting/lighting_system.dm index 9ce09b420c1..ffaba03f17d 100644 --- a/code/modules/lighting/lighting_system.dm +++ b/code/modules/lighting/lighting_system.dm @@ -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