Prevents 'unable to speak' spam on empty message by moving .silent check (chem mute) to can_speak_vocal

This commit is contained in:
spasticVerbalizer
2015-06-07 17:20:38 +02:00
parent 78dc371e41
commit 53d5ff4f39
2 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -5,7 +5,7 @@
return message
/mob/living/carbon/can_speak_basic(message)
/mob/living/carbon/can_speak_vocal(message)
if(silent)
return 0
return ..()
+1 -2
View File
@@ -70,7 +70,6 @@ var/list/department_radio_keys = list(
return
if(!can_speak_basic(message)) //Stat is seperate so I can handle whispers properly.
src << "<span class='warning'>You find yourself unable to speak!</span>"
return
var/message_mode = get_message_mode(message)
@@ -86,7 +85,7 @@ var/list/department_radio_keys = list(
return
if(!can_speak_vocal(message))
src << "<span class='warning'>You find yourself unable to speak!</span>" //repetition intended
src << "<span class='warning'>You find yourself unable to speak!</span>"
return
message = treat_message(message)