mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-22 16:12:19 +00:00
changes: Refactored footstep sounds to use less operations & only calculate for human-types. Improved the logging detail of the lighting profiler. Fixed some shuttle corners that weren't correctly working with parallax space. Converted get_turf() into a compiler macro. Solars are now dynamically lit. Silenced warning from lighting overlays pooling themselves when updated on a space tile. Fixed a bug where securing a girder was instant when it was supposed to have a delay.
30 lines
549 B
Plaintext
30 lines
549 B
Plaintext
/area
|
|
luminosity = TRUE
|
|
var/dynamic_lighting = TRUE
|
|
|
|
/area/New()
|
|
. = ..()
|
|
|
|
if (dynamic_lighting)
|
|
luminosity = FALSE
|
|
|
|
/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 turfs)
|
|
if (T.dynamic_lighting)
|
|
T.lighting_build_overlay()
|
|
|
|
else
|
|
for (var/turf/T in turfs)
|
|
if (T.lighting_overlay)
|
|
T.lighting_clear_overlay()
|
|
|
|
return TRUE
|