mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
* Optimizes SSmapping * Turfs inside area are stored https://github.com/tgstation/tgstation/pull/70966 * Add async reserving of turfs * Fix bug * Fix shuttle init
13 lines
283 B
Plaintext
13 lines
283 B
Plaintext
/proc/create_all_lighting_objects()
|
|
for(var/area/A as anything in GLOB.areas)
|
|
if(!IS_DYNAMIC_LIGHTING(A))
|
|
continue
|
|
|
|
for(var/turf/T as anything in A.get_contained_turfs())
|
|
if(!IS_DYNAMIC_LIGHTING(T))
|
|
continue
|
|
|
|
new/datum/lighting_object(T)
|
|
CHECK_TICK
|
|
CHECK_TICK
|