Files
Yogstation/code/modules/lighting/lighting_setup.dm
MrStonedOne 2ed266d506 More /vg/lighting tweaks
Rather then remove the light from all tiles, then re-add the light to all tiles, we just go thru each tile and diff the light level from the last value we added to it. (since this is tracked)
This cut the proc calls for updating lights in half.

Lighting objects now default to full brite rather then full dark so shuttles aren't as immersion breaking when they transit.

Made lighting more agressive about clearing empty lists.
2017-05-06 01:50:19 -07:00

14 lines
240 B
Plaintext

/proc/create_all_lighting_objects()
for(var/area/A in world)
if(!IS_DYNAMIC_LIGHTING(A))
continue
for(var/turf/T in A)
if(!IS_DYNAMIC_LIGHTING(T))
continue
new/atom/movable/lighting_object(T)
CHECK_TICK
CHECK_TICK