Revert "[MIRROR] Refactor area and turf lighting (#7775)" (#7902)

This reverts commit 1219e433be.
This commit is contained in:
Gandalf
2021-09-08 18:48:29 +01:00
committed by GitHub
parent 6b37f76d1c
commit 64c4c52d12
44 changed files with 1414 additions and 1512 deletions
+7 -1
View File
@@ -14,6 +14,12 @@ SUBSYSTEM_DEF(lighting)
/datum/controller/subsystem/lighting/Initialize(timeofday)
if(!initialized)
if (CONFIG_GET(flag/starlight))
for(var/I in GLOB.sortedAreas)
var/area/A = I
if (A.dynamic_lighting == DYNAMIC_LIGHTING_IFSTARLIGHT)
A.luminosity = 0
create_all_lighting_objects()
initialized = TRUE
@@ -51,7 +57,7 @@ SUBSYSTEM_DEF(lighting)
C.needs_update = FALSE //update_objects() can call qdel if the corner is storing no data
C.update_objects()
if(init_tick_checks)
CHECK_TICK
else if (MC_TICK_CHECK)