From a1162254337337addb0a83e55ffd24770ed1857e Mon Sep 17 00:00:00 2001 From: GauHelldragon Date: Fri, 28 Dec 2012 13:37:17 -0800 Subject: [PATCH 1/2] Fixes cyborg HUDs security and medical HUDs The images now go away when the module isn't active --- code/modules/mob/living/silicon/robot/life.dm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/modules/mob/living/silicon/robot/life.dm b/code/modules/mob/living/silicon/robot/life.dm index 24e0d87c13b..8250311cc33 100644 --- a/code/modules/mob/living/silicon/robot/life.dm +++ b/code/modules/mob/living/silicon/robot/life.dm @@ -161,6 +161,10 @@ src.see_in_dark = 8 src.see_invisible = SEE_INVISIBLE_LEVEL_TWO + for(var/image/hud in client.images) //COPIED FROM the human handle_regular_hud_updates() proc + if(copytext(hud.icon_state,1,4) == "hud") //ugly, but icon comparison is worse, I believe + del(hud) + var/obj/item/borg/sight/hud/hud = (locate(/obj/item/borg/sight/hud) in src) if(hud && hud.hud) hud.hud.process_hud(src) From 50489f28edd86647872c358c5ee6b962a2acea07 Mon Sep 17 00:00:00 2001 From: GauHelldragon Date: Fri, 28 Dec 2012 13:51:09 -0800 Subject: [PATCH 2/2] Fixes cyborg display when items are disabled due to power. Previously the hud would not be updated when power drops below 100 and items are disabled. --- code/modules/mob/living/silicon/robot/life.dm | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/code/modules/mob/living/silicon/robot/life.dm b/code/modules/mob/living/silicon/robot/life.dm index 8250311cc33..6cebdf92dc8 100644 --- a/code/modules/mob/living/silicon/robot/life.dm +++ b/code/modules/mob/living/silicon/robot/life.dm @@ -42,10 +42,7 @@ uneq_all() src.stat = 1 else if (src.cell.charge <= 100) - src.module_active = null - src.module_state_1 = null - src.module_state_2 = null - src.module_state_3 = null + uneq_all() src.sight_mode = 0 src.cell.use(1) else