summaryrefslogtreecommitdiff
path: root/src
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
parenteeae2a9eeb3575569f1c34966fd718c316a88760 (diff)
downloadplus-131e6ef514b2edb1bb4df2a004f05f3cc8f8ca8a.tar.gz
plus-131e6ef514b2edb1bb4df2a004f05f3cc8f8ca8a.tar.bz2
plus-131e6ef514b2edb1bb4df2a004f05f3cc8f8ca8a.tar.xz
plus-131e6ef514b2edb1bb4df2a004f05f3cc8f8ca8a.zip
For portal names strip at end #text.
Diffstat (limited to 'src')
-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();