From 420810b5ad9ab5225b28dcdcd972a9a0c2557f03 Mon Sep 17 00:00:00 2001 From: uporotiy Date: Sun, 17 Oct 2010 17:03:45 +0000 Subject: [PATCH] Mime emote fixed. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@310 316c924e-a436-60f5-8080-3fe189b3f50e --- code/modules/mob/living/carbon/human/emote.dm | 3 +++ code/modules/mob/living/say.dm | 7 +++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/code/modules/mob/living/carbon/human/emote.dm b/code/modules/mob/living/carbon/human/emote.dm index 0e42cbd39d9..811e1f44364 100644 --- a/code/modules/mob/living/carbon/human/emote.dm +++ b/code/modules/mob/living/carbon/human/emote.dm @@ -14,6 +14,7 @@ I.trigger(act, src) var/message + switch(act) if ("airguitar") if (!src.restrained()) @@ -51,6 +52,8 @@ if (input2 == "Visible") m_type = 1 else if (input2 == "Hearable") + if (src.miming) + return m_type = 2 else alert("Unable to use this emote, must be either hearable or visible.") diff --git a/code/modules/mob/living/say.dm b/code/modules/mob/living/say.dm index 62aea265779..d49c748e880 100644 --- a/code/modules/mob/living/say.dm +++ b/code/modules/mob/living/say.dm @@ -5,8 +5,11 @@ return log_say("[src.name]/[src.key] : [message]") - if (src.miming) - return + + if (length(message) >= 1) + if (copytext(message, 1, 2) != "*") + if (src.miming) + return if (src.muted) return