summaryrefslogtreecommitdiff
path: root/src/being
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-11-23 22:29:52 +0300
committerAndrei Karas <akaras@inbox.ru>2014-11-23 22:29:52 +0300
commit131e6ef514b2edb1bb4df2a004f05f3cc8f8ca8a (patch)
treefe94038f3284f821f8cb8f010204cab12ba1b5c0 /src/being
parenteeae2a9eeb3575569f1c34966fd718c316a88760 (diff)
downloadmv-131e6ef514b2edb1bb4df2a004f05f3cc8f8ca8a.tar.gz
mv-131e6ef514b2edb1bb4df2a004f05f3cc8f8ca8a.tar.bz2
mv-131e6ef514b2edb1bb4df2a004f05f3cc8f8ca8a.tar.xz
mv-131e6ef514b2edb1bb4df2a004f05f3cc8f8ca8a.zip
For portal names strip at end #text.
Diffstat (limited to 'src/being')
-rw-r--r--src/being/being.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp
index bfcb45eac..5ba258bf5 100644
--- a/src/being/being.cpp
+++ b/src/being/being.cpp
@@ -881,7 +881,7 @@ void Being::handleSkill(Being *const victim, const int damage,
void Being::setName(const std::string &name)
{
- if (mType == ActorType::Npc)
+ if (mType == ActorType::Npc || mType == ActorType::Portal)
{
mName = name.substr(0, name.find('#', 0));
showName();