Files
Bubberstation/code/modules/lighting/lighting_setup.dm
SkyratBot 110fd07f34 [MIRROR] Micros the lighting subsystem (Saves a second of init) [MDB IGNORE] (#16461)
* Micros the lighting subsystem (Saves a second of init)

* Update stat_tracking.dm

Co-authored-by: LemonInTheDark <58055496+LemonInTheDark@users.noreply.github.com>
Co-authored-by: Zonespace <41448081+Zonespace27@users.noreply.github.com>
2022-09-28 12:19:43 -07:00

14 lines
294 B
Plaintext

/proc/create_all_lighting_objects()
for(var/area/A in world)
if(!A.static_lighting)
continue
// I hate this so much dude. why do areas not track their turfs lummyyyyyyy
for(var/turf/T in A)
if(T.always_lit)
continue
new/datum/lighting_object(T)
CHECK_TICK
CHECK_TICK