From afe2f06efb0607151bf7edae645ed67fc8f74a38 Mon Sep 17 00:00:00 2001 From: MuckerMayhem <1161516+MuckerMayhem@users.noreply.github.com> Date: Fri, 15 Sep 2023 00:28:11 +0300 Subject: [PATCH] [MIRROR] fixed masks blocking speech problems --- code/modules/mob/living/carbon/human/say.dm | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/code/modules/mob/living/carbon/human/say.dm b/code/modules/mob/living/carbon/human/say.dm index 9144d48b8146a..7a089a3163c1e 100644 --- a/code/modules/mob/living/carbon/human/say.dm +++ b/code/modules/mob/living/carbon/human/say.dm @@ -148,19 +148,18 @@ return verb /mob/living/carbon/human/handle_speech_problems(list/message_data) - if(silent || (sdisabilities & MUTED)) + if (silent || (sdisabilities & MUTED)) message_data[1] = "" - . = 1 + return TRUE - else if(istype(wear_mask, /obj/item/clothing/mask)) + if (istype(wear_mask, /obj/item/clothing/mask)) var/obj/item/clothing/mask/M = wear_mask if(M.voicechange) message_data[1] = pick(M.say_messages) message_data[2] = pick(M.say_verbs) - . = 1 + return TRUE - else - . = ..(message_data) + return ..(message_data) /mob/living/carbon/human/handle_message_mode(message_mode, message, verb, speaking, used_radios, alt_name) switch(message_mode)