From 872628d9aa447b675d70825eed3fe0698da87c5c Mon Sep 17 00:00:00 2001 From: kevinz000 <2003111+kevinz000@users.noreply.github.com> Date: Wed, 15 Jan 2020 18:02:23 -0700 Subject: [PATCH] Apply suggestions from code review thank you gamer Co-Authored-By: Ghom <42542238+Ghommie@users.noreply.github.com> --- code/modules/power/apc.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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")