mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-23 04:51:32 +01:00
Minor Nightmode Fixes (#1305)
bugfix: "Global nightmode toggle no longer affects security as was originally intended." tweak: "Manually turning on nightmode will prevent the automatic system from turning it off."
This commit is contained in:
@@ -15,6 +15,11 @@
|
||||
// whether to only select areas explicitly marked for nightlighting
|
||||
var/wl_only = context == "all" ? 0 : 1
|
||||
|
||||
if (!wl_only && lstate == "dark")
|
||||
nl_ctrl.manual_override = 1
|
||||
else if (!wl_only)
|
||||
nl_ctrl.manual_override = 0
|
||||
|
||||
if (lstate == "dark")
|
||||
log_and_message_admins("enabled night-mode [wl_only ? "in public areas" : "globally"].", lusr)
|
||||
nl_ctrl.activate(wl_only)
|
||||
|
||||
Reference in New Issue
Block a user