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