From d9b840ce8e8ed17f003fa313ce73875ec71b213d Mon Sep 17 00:00:00 2001 From: skull132 Date: Sun, 21 Dec 2014 19:41:59 +0200 Subject: [PATCH] AntagHUD Runtime 2 Okay, fixed now properly. Hopefully. --- code/modules/mob/dead/observer/observer.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/modules/mob/dead/observer/observer.dm b/code/modules/mob/dead/observer/observer.dm index b39b04b3..5f100ac9 100644 --- a/code/modules/mob/dead/observer/observer.dm +++ b/code/modules/mob/dead/observer/observer.dm @@ -270,11 +270,11 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp if(jobban_isbanned(M, "AntagHUD")) src << "\red You have been banned from using this feature" return - if(config.antag_hud_restricted && !M.has_enabled_antagHUD && !(client.holder.rights & (R_ADMIN|R_MOD))) + if(config.antag_hud_restricted && !M.has_enabled_antagHUD && !(client.holder && (client.holder.rights & (R_ADMIN|R_MOD)))) var/response = alert(src, "If you turn this on, you will not be able to take any part in the round.","Are you sure you want to turn this feature on?","Yes","No") if(response == "No") return M.can_reenter_corpse = 0 - if(!M.has_enabled_antagHUD && !(client.holder.rights & (R_ADMIN|R_MOD))) + if(!M.has_enabled_antagHUD && !(client.holder && (client.holder.rights & (R_ADMIN|R_MOD)))) M.has_enabled_antagHUD = 1 if(M.antagHUD) M.antagHUD = 0