From 34abcde0e37c8a6c0126b13e1390a0b7213f9fd0 Mon Sep 17 00:00:00 2001
From: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com>
Date: Tue, 13 Jul 2021 14:25:20 +0100
Subject: [PATCH] Fuck I forgot this
---
code/modules/tgui/modules/ghost_hud_panel.dm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/code/modules/tgui/modules/ghost_hud_panel.dm b/code/modules/tgui/modules/ghost_hud_panel.dm
index fe35872bc04..d7376d59ff4 100644
--- a/code/modules/tgui/modules/ghost_hud_panel.dm
+++ b/code/modules/tgui/modules/ghost_hud_panel.dm
@@ -47,14 +47,14 @@ GLOBAL_DATUM_INIT(ghost_hud_panel, /datum/ui_module/ghost_hud_panel, new)
ghost.remove_the_hud(hud_type)
if("ahud_on")
- if(!config.antag_hud_allowed && !ghost.client.holder)
+ if(!GLOB.configuration.general.allow_antag_hud && !ghost.client.holder)
to_chat(ghost, "Admins have disabled this for this round.")
return FALSE
if(jobban_isbanned(ghost, "AntagHUD"))
to_chat(ghost, "You have been banned from using this feature.")
return FALSE
// Check if this is the first time they're turning on Antag HUD.
- if(!check_rights(R_ADMIN | R_MOD, FALSE) && !ghost.has_enabled_antagHUD && config.antag_hud_restricted)
+ if(!check_rights(R_ADMIN | R_MOD, FALSE) && !ghost.has_enabled_antagHUD && GLOB.configuration.general.restrict_antag_hud_rejoin)
var/response = alert(ghost, "If you turn this on, you will not be able to take any part in the round.", "Are you sure you want to enable antag HUD?", "Yes", "No")
if(response == "No")
return FALSE