Skip to content

Commit

Permalink
Lighting error fix (#16153)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lumipharon authored and Helg2 committed Sep 4, 2024
1 parent 3e56450 commit b1b1ef3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
13 changes: 0 additions & 13 deletions code/controllers/subsystem/lighting.dm
Original file line number Diff line number Diff line change
Expand Up @@ -102,16 +102,3 @@ SUBSYSTEM_DEF(lighting)
/datum/controller/subsystem/lighting/Recover()
initialized = SSlighting.initialized
return ..()

///sets up light objects for a particular z level. Used for late loading
/datum/controller/subsystem/lighting/proc/create_lighting_objects_for_z(z_level)
for(var/area/new_area in world)
if(new_area.z != z_level)
continue
if(!new_area.static_lighting)
continue

for(var/turf/T in new_area)
new/datum/static_lighting_object(T)
CHECK_TICK
CHECK_TICK
1 change: 0 additions & 1 deletion code/modules/mapping/map_template.dm
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@
SSweather.load_late_z(level.z_value)
SSair.setup_atmos_machinery()
SSair.setup_pipenets()
SSlighting.create_lighting_objects_for_z(level.z_value)
smooth_zlevel(level.z_value)
if(minimap)
SSminimaps.load_new_z(null, level)
Expand Down

0 comments on commit b1b1ef3

Please sign in to comment.