mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-11 18:22:14 +00:00
Fixes lighting object initialization on new zlevels.
This commit is contained in:
@@ -88,3 +88,11 @@ 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
|
||||||
@@ -53,6 +53,7 @@
|
|||||||
smooth_zlevel(world.maxz)
|
smooth_zlevel(world.maxz)
|
||||||
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)
|
||||||
log_game("Z-level [name] loaded at at [x],[y],[world.maxz]")
|
log_game("Z-level [name] loaded at at [x],[y],[world.maxz]")
|
||||||
|
|||||||
Reference in New Issue
Block a user