mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
Make lighting correction only run on post-sslighting setup loads
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
/datum/map_template/proc/on_map_loaded(z)
|
/datum/map_template/proc/on_map_loaded(z)
|
||||||
for(var/Trf in block(locate(1,1,z), locate(world.maxx, world.maxy, z)))
|
if(lighting_overlays_initialised) //We missed sslighting init!
|
||||||
var/turf/T = Trf //faster than implicit istype with typed for loop
|
for(var/Trf in block(locate(1,1,z), locate(world.maxx, world.maxy, z)))
|
||||||
T.lighting_build_overlay()
|
var/turf/T = Trf //faster than implicit istype with typed for loop
|
||||||
|
T.lighting_build_overlay()
|
||||||
return
|
return
|
||||||
Reference in New Issue
Block a user