diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-11-23 22:29:52 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-11-23 22:29:52 +0300 |
commit | 131e6ef514b2edb1bb4df2a004f05f3cc8f8ca8a (patch) | |
tree | fe94038f3284f821f8cb8f010204cab12ba1b5c0 /src | |
parent | eeae2a9eeb3575569f1c34966fd718c316a88760 (diff) | |
download | manaplus-131e6ef514b2edb1bb4df2a004f05f3cc8f8ca8a.tar.gz manaplus-131e6ef514b2edb1bb4df2a004f05f3cc8f8ca8a.tar.bz2 manaplus-131e6ef514b2edb1bb4df2a004f05f3cc8f8ca8a.tar.xz manaplus-131e6ef514b2edb1bb4df2a004f05f3cc8f8ca8a.zip |
For portal names strip at end #text.
Diffstat (limited to 'src')
-rw-r--r-- | src/being/being.cpp | 2 |
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(); |