diff --git a/code/modules/power/apc.dm b/code/modules/power/apc.dm index 0f8c37cdbb..8b8936e48f 100644 --- a/code/modules/power/apc.dm +++ b/code/modules/power/apc.dm @@ -969,10 +969,10 @@ failure_timer = 0 update_icon() update() - var/authorized = (!locked || !usr.has_unlimited_silicon_privilege || failure_timer || (integration_cog && (is_servant_of_ratvar(usr)))) + var/authorized = (!locked || usr.has_unlimited_silicon_privilege || (integration_cog && (is_servant_of_ratvar(usr)))) if((action == "toggle_nightshift") && (!nightshift_requires_auth || authorized)) toggle_nightshift_lights() - . = TRUE + return TRUE if(authorized) switch(action) if("lock")