Files
Aurora.3/code/modules/lighting/lighting_area.dm
Fluffy ab23fbdb70 Function overloads condensation (#18939)
Unified most of the procs into one definition, so there are no duplicate
around the codebase.
Marked some of the above as overridable if a good enough case can be
made for them (eg. external dependency or unlikely to be used).
2024-04-19 21:19:41 +00:00

24 lines
479 B
Plaintext

/area
luminosity = TRUE
var/dynamic_lighting = TRUE
/area/proc/set_dynamic_lighting(var/new_dynamic_lighting = TRUE)
//L_PROF(src, "area_sdl")
if (new_dynamic_lighting == dynamic_lighting)
return FALSE
dynamic_lighting = new_dynamic_lighting
if (new_dynamic_lighting)
for (var/turf/T in src)
if (T.dynamic_lighting)
T.lighting_build_overlay()
else
for (var/turf/T in src)
if (T.lighting_overlay)
T.lighting_clear_overlay()
return TRUE