Files
GS13NG/code/modules/lighting/lighting_setup.dm
Poojawa f67e9f6d87 Bleeding edgy refresh (#303)
* not code stuff

* other things

* global vars, defines, helpers

* onclick hud stuff, orphans, world.dm

* controllers and datums

* game folder

* everything not client/mobs in modules

* client folder

* stage 1 mob stuff

* simple animal things

* silicons

* carbon things

* ayylmaos and monkeys

* hyoomahn

* icons n shit

* sprite fixes

* compile fixes

* some fixes I cherrypicked.

* qdel fixes

* forgot brain refractors
2017-03-21 11:44:10 -05:00

20 lines
460 B
Plaintext

/proc/create_all_lighting_objects()
for (var/zlevel = 1 to world.maxz)
create_lighting_objects_zlevel(zlevel)
/proc/create_lighting_objects_zlevel(zlevel)
ASSERT(zlevel)
var/turf/T
var/thing
for (thing in block(locate(1, 1, zlevel), locate(world.maxx, world.maxy, zlevel)))
T = thing
if (!IS_DYNAMIC_LIGHTING(T))
continue
var/area/A = T.loc
if (!IS_DYNAMIC_LIGHTING(A))
continue
new/atom/movable/lighting_object(T, TRUE)
CHECK_TICK