Merge pull request #3904 from Neerti/9/22/2017_surprise_lighting_port

Fixes the Sun/Weather and Ports Vore's Lighting SS
This commit is contained in:
Anewbe
2017-09-23 10:20:23 -05:00
committed by GitHub
7 changed files with 188 additions and 104 deletions
+1 -1
View File
@@ -125,7 +125,7 @@
if (force)
total_lighting_overlays--
global.lighting_update_overlays -= src
global.lighting_update_overlays_old -= src
LAZYREMOVE(SSlighting.currentrun, src)
var/turf/T = loc
if(istype(T))
+10 -2
View File
@@ -1,6 +1,14 @@
// Create lighting overlays on all turfs with dynamic lighting in areas with dynamic lighting.
/proc/create_all_lighting_overlays()
for(var/zlevel = 1 to world.maxz)
create_lighting_overlays_zlevel(zlevel)
for(var/area/A in world)
if(!A.dynamic_lighting)
continue
for(var/turf/T in A)
if(!T.dynamic_lighting)
continue
new /atom/movable/lighting_overlay(T, TRUE)
CHECK_TICK
CHECK_TICK
/proc/create_lighting_overlays_zlevel(var/zlevel)
ASSERT(zlevel)