mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
Fixes loading zlevels with static lighting. (#38365)
* Fixes loading zlevels with static lighting. * Actually this whole part is unnecessary now because change turf handles the change properly now. * Correct
This commit is contained in:
@@ -85,12 +85,4 @@ SUBSYSTEM_DEF(lighting)
|
|||||||
|
|
||||||
/datum/controller/subsystem/lighting/Recover()
|
/datum/controller/subsystem/lighting/Recover()
|
||||||
initialized = SSlighting.initialized
|
initialized = SSlighting.initialized
|
||||||
..()
|
..()
|
||||||
|
|
||||||
|
|
||||||
/datum/controller/subsystem/lighting/proc/initialize_lighting_objects(list/turfs)
|
|
||||||
for(var/turf/T in turfs)
|
|
||||||
if(!IS_DYNAMIC_LIGHTING(T))
|
|
||||||
continue
|
|
||||||
new/atom/movable/lighting_object(T)
|
|
||||||
CHECK_TICK
|
|
||||||
@@ -59,7 +59,6 @@
|
|||||||
|
|
||||||
repopulate_sorted_areas()
|
repopulate_sorted_areas()
|
||||||
|
|
||||||
SSlighting.initialize_lighting_objects(block(locate(bounds[MAP_MINX], bounds[MAP_MINY], bounds[MAP_MINZ]),locate(bounds[MAP_MAXX], bounds[MAP_MAXY], bounds[MAP_MAXZ])))
|
|
||||||
//initialize things that are normally initialized after map load
|
//initialize things that are normally initialized after map load
|
||||||
initTemplateBounds(bounds)
|
initTemplateBounds(bounds)
|
||||||
smooth_zlevel(world.maxz)
|
smooth_zlevel(world.maxz)
|
||||||
|
|||||||
Reference in New Issue
Block a user