From cebf45e11b5cbd9fc03cd03dac8b0b5932cc53ab Mon Sep 17 00:00:00 2001 From: Arokha Sieyes Date: Thu, 16 Jun 2016 01:34:40 -0400 Subject: [PATCH] Hacky fix for HUD problems Teshari hud darkness overlay keeps getting deleted globally, and worse it keeps them from spawning after. This is a cheap fix to correct this, but I have no idea what's causing it in the first place. --- code/controllers/Processes/mob.dm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/code/controllers/Processes/mob.dm b/code/controllers/Processes/mob.dm index b44842036d..9935684a1a 100644 --- a/code/controllers/Processes/mob.dm +++ b/code/controllers/Processes/mob.dm @@ -12,6 +12,12 @@ mob_list = list() /datum/controller/process/mob/doWork() + if(!global_hud || !global_hud.darkMask) // A fix for a problem I can't find yet. ~Aro + try + global_hud = new() + log_debug("Had to recreate global_hud.") + catch + log_debug("Failed to recreate global_hud.") for(last_object in mob_list) var/mob/M = last_object if(isnull(M.gcDestroyed))