From 11904bd805e2e80761e4b9c3ff934f0d7043b2d1 Mon Sep 17 00:00:00 2001 From: PsiOmegaDelta Date: Fri, 4 Dec 2015 10:45:42 +0100 Subject: [PATCH] Object access check fix. Objects now only check synth access as intended, instead of the more restrictive allowance. Fixes https://github.com/PolarisSS13/Polaris/issues/409. --- code/game/objects/objs.dm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/game/objects/objs.dm b/code/game/objects/objs.dm index 800659307e8..2fe7f7130c1 100644 --- a/code/game/objects/objs.dm +++ b/code/game/objects/objs.dm @@ -39,7 +39,8 @@ return STATUS_CLOSE /mob/living/silicon/CanUseObjTopic(var/obj/O) - return O.allowed(src) + var/id = src.GetIdCard() + return O.check_access(id) /mob/proc/CanUseObjTopic() return 1