mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
[MIRROR] starlight optimization (#11130)
Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
committed by
GitHub
parent
b81d4e421c
commit
0e2c783b50
@@ -581,7 +581,8 @@
|
||||
/datum/config_entry/flag/allow_url_links
|
||||
default = TRUE // honestly if I were you i'd leave this one off, only use in dire situations
|
||||
|
||||
/datum/config_entry/flag/starlight // Whether space turfs have ambient light or not
|
||||
/datum/config_entry/number/starlight // Whether space turfs have ambient light or not and how strong it is.
|
||||
default = 0
|
||||
|
||||
// FIXME: Unused
|
||||
///datum/config_entry/str_list/ert_species
|
||||
|
||||
@@ -20,11 +20,6 @@ SUBSYSTEM_DEF(lighting)
|
||||
|
||||
/datum/controller/subsystem/lighting/Initialize()
|
||||
if(!subsystem_initialized)
|
||||
if (CONFIG_GET(flag/starlight))
|
||||
for(var/area/A in world)
|
||||
if (A.dynamic_lighting == DYNAMIC_LIGHTING_IFSTARLIGHT)
|
||||
A.luminosity = 0
|
||||
|
||||
subsystem_initialized = TRUE
|
||||
create_all_lighting_objects()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user