Skip to content

Commit

Permalink
MMIs can now whisper without talking on the radio (tgstation#35738)
Browse files Browse the repository at this point in the history
* MMIs can now whisper without talking on the radio

Fixes tgstation#35638.

* Otherwise, call super
  • Loading branch information
coiax authored and ShizCalev committed Feb 18, 2018
1 parent 399d4fd commit 393198b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion code/modules/mob/living/brain/say.dm
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@
return ..() | SPAN_ROBOT

/mob/living/brain/radio(message, message_mode, list/spans, language)
if(message_mode && istype(container, /obj/item/device/mmi))
if(message_mode == MODE_HEADSET && istype(container, /obj/item/device/mmi))
var/obj/item/device/mmi/R = container
if(R.radio)
R.radio.talk_into(src, message, , get_spans(), language)
return ITALICS | REDUCE_RANGE
else
return ..()

/mob/living/brain/lingcheck()
return LINGHIVE_NONE
Expand Down

0 comments on commit 393198b

Please sign in to comment.