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:
Lohikar
2017-10-14 11:25:11 -05:00
committed by Erki
parent 1c5fa4880c
commit dedb657aeb
5 changed files with 27 additions and 0 deletions
+7
View File
@@ -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