summaryrefslogtreecommitdiff
path: root/src/being.cpp
diff options
context:
space:
mode:
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 9de03502..e2495bc0 100644
--- a/src/being.cpp
+++ b/src/being.cpp
@@ -193,7 +193,8 @@ void Being::setSpeech(const std::string &text, Uint32 time)
}
std::string::size_type position = mSpeech.find('|');
- mSpeech.erase(end, 1);
+ if (mSpeech[start + 1] == '@' && mSpeech[start + 2] == '@')
+ mSpeech.erase(end, 1);
mSpeech.erase(start, (position - start) + 1);
position = mSpeech.find('@');