summaryrefslogtreecommitdiff
path: root/src/being/being.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/being/being.cpp')
-rw-r--r--src/being/being.cpp16
1 files changed, 9 insertions, 7 deletions
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());