Make lighting correction only run on post-sslighting setup loads

This commit is contained in:
Aronai Sieyes
2020-03-13 10:12:37 -04:00
parent 0be3210ecd
commit 46bebeabac

View File

@@ -1,5 +1,6 @@
/datum/map_template/proc/on_map_loaded(z)
for(var/Trf in block(locate(1,1,z), locate(world.maxx, world.maxy, z)))
var/turf/T = Trf //faster than implicit istype with typed for loop
T.lighting_build_overlay()
if(lighting_overlays_initialised) //We missed sslighting init!
for(var/Trf in block(locate(1,1,z), locate(world.maxx, world.maxy, z)))
var/turf/T = Trf //faster than implicit istype with typed for loop
T.lighting_build_overlay()
return