summaryrefslogtreecommitdiff
path: root/src/being.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2009-10-06 00:08:25 +0300
committerJared Adams <jaxad0127@gmail.com>2009-10-05 16:53:21 -0600
commitc1b93b0bfe2d7c4568de26af85523f83e72293d4 (patch)
treef446a5e256fc5e63f34c6a7b91a5e414b7c8ae2e /src/being.cpp
parent8a70da0e01e8cd6fd3b9b443bde45729b44a480b (diff)
downloadMana-c1b93b0bfe2d7c4568de26af85523f83e72293d4.tar.gz
Mana-c1b93b0bfe2d7c4568de26af85523f83e72293d4.tar.bz2
Mana-c1b93b0bfe2d7c4568de26af85523f83e72293d4.tar.xz
Mana-c1b93b0bfe2d7c4568de26af85523f83e72293d4.zip
Hide color codes from speech text
Diffstat (limited to 'src/being.cpp')
-rw-r--r--src/being.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/being.cpp b/src/being.cpp
index 34f68581..d15c27b3 100644
--- a/src/being.cpp
+++ b/src/being.cpp
@@ -213,7 +213,8 @@ void Being::setPath(const Path &path)
void Being::setSpeech(const std::string &text, int time)
{
- mSpeech = text;
+ // Remove colors
+ mSpeech = removeColors(text);
// Trim whitespace
trim(mSpeech);