mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-10 23:54:14 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user