From cb7a8dc1a2d9d2fe036ea2f2bb9716878c453bbf Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Fri, 8 Jul 2022 20:57:51 +0200 Subject: [PATCH] [MIRROR] Fixes airlock shock indicators not being removed when the airlock is unshocked [MDB IGNORE] (#14789) * Fixes airlock shock indicators not being removed when the airlock is unshocked (#68112) shocking development * Fixes airlock shock indicators not being removed when the airlock is unshocked Co-authored-by: zxaber <37497534+zxaber@users.noreply.github.com> --- code/modules/mob/mob.dm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/code/modules/mob/mob.dm b/code/modules/mob/mob.dm index d8a5cb13622..1e4f3bd58cc 100644 --- a/code/modules/mob/mob.dm +++ b/code/modules/mob/mob.dm @@ -129,9 +129,8 @@ if(!istext(hud_category)) return FALSE - LAZYREMOVE(active_hud_list, hud_category) - if(!update_huds) + LAZYREMOVE(active_hud_list, hud_category) return TRUE if(exclusive_hud) @@ -140,6 +139,8 @@ for(var/datum/atom_hud/hud_to_update as anything in GLOB.huds_by_category[hud_category]) hud_to_update.remove_single_hud_category_on_atom(src, hud_category) + LAZYREMOVE(active_hud_list, hud_category) + return TRUE /**