Skip to content

Commit

Permalink
Merge pull request tgstation#27609 from Cyberboss/patch-88
Browse files Browse the repository at this point in the history
Fixes SSlighting Recovery
  • Loading branch information
lzimann authored May 24, 2017
2 parents 5cc9387 + 6b55268 commit 2e6ae15
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions code/controllers/subsystem/lighting.dm
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,15 @@ SUBSYSTEM_DEF(lighting)


/datum/controller/subsystem/lighting/Initialize(timeofday)
if (config.starlight)
for(var/I in GLOB.sortedAreas)
var/area/A = I
if (A.dynamic_lighting == DYNAMIC_LIGHTING_IFSTARLIGHT)
A.luminosity = 0

create_all_lighting_objects()
initialized = TRUE
if(!initialized)
if (config.starlight)
for(var/I in GLOB.sortedAreas)
var/area/A = I
if (A.dynamic_lighting == DYNAMIC_LIGHTING_IFSTARLIGHT)
A.luminosity = 0

create_all_lighting_objects()
initialized = TRUE

fire(FALSE, TRUE)

Expand Down

0 comments on commit 2e6ae15

Please sign in to comment.