diff options
author | Ira Rice <irarice@gmail.com> | 2009-01-29 08:55:59 -0700 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2009-01-29 08:55:59 -0700 |
commit | 68f3b73a82999b8ee8c7937b9da8060af1f3b691 (patch) | |
tree | 41ccc60db4cf97c0f77beabe1459a2e0d3749e62 /src/being.cpp | |
parent | 0a2883b61472c5dbcd419d033bd8792c335dc175 (diff) | |
download | mana-68f3b73a82999b8ee8c7937b9da8060af1f3b691.tar.gz mana-68f3b73a82999b8ee8c7937b9da8060af1f3b691.tar.bz2 mana-68f3b73a82999b8ee8c7937b9da8060af1f3b691.tar.xz mana-68f3b73a82999b8ee8c7937b9da8060af1f3b691.zip |
If an item link isn't found, don't treat it as a link.
Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/being.cpp')
-rw-r--r-- | src/being.cpp | 3 |
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('@'); |