From e8e544cd6041fe366b358357d7426586b2bd08a7 Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Sun, 25 Dec 2022 06:50:30 +0100 Subject: [PATCH] [MIRROR] Fixes deaf mobs seeing PDA ringtones when they receive a message [MDB IGNORE] (#18266) * Fixes deaf mobs seeing PDA ringtones when they receive a message (#72084) Deaf mobs will no longer see PDA ringtones when a PDA receives a message. * Fixes deaf mobs seeing PDA ringtones when they receive a message Co-authored-by: ShizCalev --- code/modules/modular_computers/computers/item/computer.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/modules/modular_computers/computers/item/computer.dm b/code/modules/modular_computers/computers/item/computer.dm index 8d3db39f4d7..cfedbb48054 100644 --- a/code/modules/modular_computers/computers/item/computer.dm +++ b/code/modules/modular_computers/computers/item/computer.dm @@ -510,14 +510,14 @@ GLOBAL_LIST_EMPTY(TabletMessengers) // a list of all active messengers, similar if(!caller || !caller.alert_able || caller.alert_silenced || !alerttext) //Yeah, we're checking alert_able. No, you don't get to make alerts that the user can't silence. return FALSE playsound(src, sound, 50, TRUE) - visible_message(span_notice("[icon2html(src)] [span_notice("The [src] displays a [caller.filedesc] notification: [alerttext]")]")) + loc.visible_message(span_notice("[icon2html(src)] [span_notice("The [src] displays a [caller.filedesc] notification: [alerttext]")]")) /obj/item/modular_computer/proc/ring(ringtone) // bring bring if(HAS_TRAIT(SSstation, STATION_TRAIT_PDA_GLITCHED)) playsound(src, pick('sound/machines/twobeep_voice1.ogg', 'sound/machines/twobeep_voice2.ogg'), 50, TRUE) else playsound(src, 'sound/machines/twobeep_high.ogg', 50, TRUE) - visible_message("*[ringtone]*") + audible_message("*[ringtone]*") /obj/item/modular_computer/proc/send_sound() playsound(src, 'sound/machines/terminal_success.ogg', 15, TRUE)