From 46bebeabacd07546919e4ed19692654bbbd3f07a Mon Sep 17 00:00:00 2001 From: Aronai Sieyes Date: Fri, 13 Mar 2020 10:12:37 -0400 Subject: [PATCH] Make lighting correction only run on post-sslighting setup loads --- code/modules/maps/tg/map_template_vr.dm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/code/modules/maps/tg/map_template_vr.dm b/code/modules/maps/tg/map_template_vr.dm index b966261b47..2f89ffcf0c 100644 --- a/code/modules/maps/tg/map_template_vr.dm +++ b/code/modules/maps/tg/map_template_vr.dm @@ -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 \ No newline at end of file