From 7e1bc52c8ff7166a2b8c824786fbb217909f38f8 Mon Sep 17 00:00:00 2001 From: dumpdavidson Date: Mon, 3 Jun 2013 11:54:39 +0200 Subject: [PATCH] Fixed admin right checks in the traitor panel's monkey section. --- code/datums/mind.dm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/datums/mind.dm b/code/datums/mind.dm index b44b945cf7b..a30866ccc60 100644 --- a/code/datums/mind.dm +++ b/code/datums/mind.dm @@ -765,7 +765,7 @@ datum/mind return switch(href_list["monkey"]) if("healthy") - if (usr.client.holder.rights & R_ADMIN) + if (check_rights(R_ADMIN)) var/mob/living/carbon/human/H = current var/mob/living/carbon/monkey/M = current if (istype(H)) @@ -780,7 +780,7 @@ datum/mind D.cure(0) sleep(0) //because deleting of virus is done through spawn(0) if("infected") - if (usr.client.holder.rights & R_ADMIN) + if (check_rights(R_ADMIN, 0)) var/mob/living/carbon/human/H = current var/mob/living/carbon/monkey/M = current if (istype(H)) @@ -793,7 +793,7 @@ datum/mind else if (istype(M)) current.contract_disease(new /datum/disease/jungle_fever,1,0) if("human") - if (usr.client.holder.rights & R_ADMIN) + if (check_rights(R_ADMIN, 0)) var/mob/living/carbon/human/H = current var/mob/living/carbon/monkey/M = current if (istype(M))