From 6c5e393bfa05f3cc42609b91d549e45c55220a6e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 5 Mar 2016 19:36:59 +0300 Subject: Replace in Being getter getName to mName. --- src/being/being.cpp | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'src/being/being.cpp') diff --git a/src/being/being.cpp b/src/being/being.cpp index 127c38232..227570b40 100644 --- a/src/being/being.cpp +++ b/src/being/being.cpp @@ -743,7 +743,9 @@ void Being::takeDamage(Being *restrict const attacker, else if (attacker == localPlayer && amount) { chatWindow->battleChatLog(strprintf("%s : You hit %s -%d", - attacker->getName().c_str(), getName().c_str(), amount), + attacker->mName.c_str(), + mName.c_str(), + amount), ChatMsgType::BY_PLAYER); } } @@ -766,7 +768,7 @@ void Being::takeDamage(Being *restrict const attacker, if (amount > 0) { if (localPlayer && localPlayer == this) - localPlayer->setLastHitFrom(attacker->getName()); + localPlayer->setLastHitFrom(attacker->mName); mDamageTaken += amount; if (mInfo) @@ -797,9 +799,9 @@ void Being::takeDamage(Being *restrict const attacker, } else if (mType == ActorType::Player && socialWindow && - !getName().empty()) + !mName.empty()) { - socialWindow->updateAvatar(getName()); + socialWindow->updateAvatar(mName); } if (effectManager) @@ -1150,7 +1152,7 @@ void Being::removeGuild(const int id) restrict2 socialWindow->removeTab(mGuilds[id]); if (mGuilds[id]) - mGuilds[id]->removeMember(getName()); + mGuilds[id]->removeMember(mName); mGuilds.erase(id); } @@ -1241,7 +1243,7 @@ void Being::updateGuild() restrict2 updateColors(); return; } - if (guild->getMember(getName())) + if (guild->getMember(mName)) { setGuild(guild); if (!guild->getName().empty()) @@ -2719,7 +2721,7 @@ void Being::addToCache() const restrict2 if (!mLowTraffic) return; - entry->setName(getName()); + entry->setName(mName); entry->setLevel(getLevel()); entry->setPartyName(getPartyName()); entry->setGuildName(getGuildName()); -- cgit v1.2.3-70-g09d2