mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-17 10:57:19 +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)
|
||||
|
||||
@@ -903,7 +903,7 @@
|
||||
return 1
|
||||
|
||||
if (href_list["lmode"])
|
||||
src.toggle_nightlight()
|
||||
src.toggle_nightlight(href_list["lmode"])
|
||||
update_icon()
|
||||
|
||||
else if(!istype(usr, /mob/living/silicon) && (locked && !emagged))
|
||||
|
||||
Reference in New Issue
Block a user