diff --git a/code/__HELPERS/mob_helpers.dm b/code/__HELPERS/mob_helpers.dm index e68a1916aa4..5064c6ffaf9 100644 --- a/code/__HELPERS/mob_helpers.dm +++ b/code/__HELPERS/mob_helpers.dm @@ -606,9 +606,9 @@ GLOBAL_LIST_EMPTY(do_after_once_tracker) var/mob/living/carbon/human/H = thing H.sec_hud_set_security_status() -/proc/update_all_mob_malf_hud(new_status) +/proc/update_all_mob_malf_hud() for(var/mob/living/carbon/human/H in GLOB.human_list) - H.malf_hud_set_status(new_status) + H.malf_hud_set_status() /proc/getviewsize(view) var/viewX diff --git a/code/game/data_huds.dm b/code/game/data_huds.dm index eb33c75e0a6..fb02c7be254 100644 --- a/code/game/data_huds.dm +++ b/code/game/data_huds.dm @@ -511,17 +511,17 @@ Malf AI HUD ~~~~~~~~~~~~~~~*/ -/mob/living/carbon/human/proc/malf_hud_set_status(new_status) +/mob/living/carbon/human/proc/malf_hud_set_status() var/image/holder = hud_list[MALF_AI_HUD] + var/new_status var/targetname = get_visible_name(TRUE) //gets the name of the target, works if they have an id or if their face is uncovered if(!SSticker) return //wait till the game starts or the monkeys runtime - if(!new_status) - for(var/datum/data/record/E in GLOB.data_core.general) - if(E.fields["name"] == targetname) - for(var/datum/data/record/R in GLOB.data_core.security) - if(R.fields["id"] == E.fields["id"]) - new_status = E.fields["ai_target"] + for(var/datum/data/record/E in GLOB.data_core.general) + if(E.fields["name"] == targetname) + for(var/datum/data/record/R in GLOB.data_core.security) + if(R.fields["id"] == E.fields["id"]) + new_status = E.fields["ai_target"] if(targetname) var/datum/data/record/R = find_record("name", targetname, GLOB.data_core.security) if(R) diff --git a/code/modules/mob/living/carbon/human/human_mob.dm b/code/modules/mob/living/carbon/human/human_mob.dm index 294dc0a63ff..7ddc06cc77f 100644 --- a/code/modules/mob/living/carbon/human/human_mob.dm +++ b/code/modules/mob/living/carbon/human/human_mob.dm @@ -786,7 +786,7 @@ found_record.fields["ai_target"] = new_status - update_all_mob_malf_hud(new_status) + update_all_mob_malf_hud() /mob/living/carbon/human/can_be_flashed(intensity = 1, override_blindness_check = 0)