Merge pull request #7049 from Novacat/nova-accessory

Overmap Consoles now check access
This commit is contained in:
Atermonera
2020-05-03 00:12:45 -07:00
committed by GitHub
2 changed files with 4 additions and 3 deletions
+1 -3
View File
@@ -1,6 +1,6 @@
#if DM_VERSION < 513
#define ismovableatom(A) (istype(A, /atom/movable))
#define ismovable(A) (istype(A, /atom/movable))
#define islist(L) (istype(L, /list))
@@ -18,8 +18,6 @@
#else
#define ismovableatom(A) ismovable(A)
#define CLAMP01(x) clamp(x, 0, 1)
#define CLAMP(CLVALUE, CLMIN, CLMAX) clamp(CLVALUE, CLMIN, CLMAX)
@@ -100,5 +100,8 @@
/obj/machinery/computer/ship/attack_hand(mob/user)
if((. = ..()))
return
if(!allowed(user))
to_chat(user, "<span class='warning'>Access Denied.</span>")
return 1
if(CanUseTopic(user, DefaultTopicState()) > STATUS_CLOSE)
return interface_interact(user)