Colored starlight bugfix. (#15510)

This commit is contained in:
TheDanseMacabre
2023-01-07 06:39:37 -05:00
committed by GitHub
parent 236ac2eb6f
commit b915e8b8fb
6 changed files with 61 additions and 4 deletions

View File

@@ -12,7 +12,8 @@ var/datum/controller/subsystem/skybox/SSskybox
var/star_path = 'icons/skybox/skybox.dmi'
var/star_state = "stars"
var/list/skybox_cache = list()
var/list/space_appearance_cache
var/list/space_appearance_cache
/datum/controller/subsystem/skybox/proc/build_space_appearances()
space_appearance_cache = new(26)
@@ -28,6 +29,7 @@ var/datum/controller/subsystem/skybox/SSskybox
space.icon_state = "white"
space.overlays += dust
space_appearance_cache[i + 1] = space.appearance
background_color = SSatlas.current_sector.starlight_color
/datum/controller/subsystem/skybox/New()
NEW_SS_GLOBAL(SSskybox)