mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-13 17:07:53 +01:00
move sunlight to compile-time option (#3636)
Turns out sunlight is a little memory hungry/slow. This disables sunlight via. compile-time define instead of removing it so it can be re-enabled if suitable later.
This commit is contained in:
@@ -1108,6 +1108,7 @@ var/list/admin_verbs_cciaa = list(
|
||||
|
||||
SSopenturf.hard_reset()
|
||||
|
||||
#ifdef ENABLE_SUNLIGHT
|
||||
/client/proc/apply_sunstate()
|
||||
set category = "Fun"
|
||||
set name = "Apply Sun Preset"
|
||||
@@ -1122,3 +1123,9 @@ var/list/admin_verbs_cciaa = list(
|
||||
|
||||
SSsunlight.apply_sun_state(S)
|
||||
log_and_message_admins("has set the sun state to '[S]'.")
|
||||
#else
|
||||
/client/proc/apply_sunstate()
|
||||
set hidden = TRUE
|
||||
|
||||
usr << "The sunlight system is disabled."
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user