Skip to content

Commit

Permalink
Update text_to_speech.dm
Browse files Browse the repository at this point in the history
  • Loading branch information
timothyteakettle committed Aug 31, 2024
1 parent 11b78d6 commit 27016ba
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions code/game/objects/items/devices/text_to_speech.dm
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@
var/mob/living/carbon/human/H = source
var/obj/item/radio/headset/left_radio = H.l_ear
var/obj/item/radio/headset/right_radio = H.r_ear
if(istype(left_radio) && (message_mode == "headset" || left_radio.channels[message_mode]))
left_radio.talk_into(source, message, null, speech_verb, null)
if(istype(right_radio) && (message_mode == "headset" || right_radio.channels[message_mode]))
right_radio.talk_into(source, message, null, speech_verb, null)
if(istype(left_radio))
left_radio.talk_into(source, message, message_mode, speech_verb, null)
if(istype(right_radio))
right_radio.talk_into(source, message, message_mode, speech_verb, null)

playsound(src, 'sound/items/tts/stopped_type.ogg', 25, TRUE)

0 comments on commit 27016ba

Please sign in to comment.