From 131e6ef514b2edb1bb4df2a004f05f3cc8f8ca8a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 23 Nov 2014 22:29:52 +0300 Subject: For portal names strip at end #text. --- src/being/being.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/being/being.cpp') 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(); -- cgit v1.2.3-70-g09d2