diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-07-30 12:25:16 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-07-30 12:25:16 +0300 |
commit | 1680d159ecbf75591d2dab1416ff8144c27d4de5 (patch) | |
tree | cd34ad27487036265f08d7aa63476c160280d899 /src/gui/windows/whoisonline.cpp | |
parent | 9913b4b481ddcaf0fa8499f3554c85bb588be7f0 (diff) | |
download | manaverse-1680d159ecbf75591d2dab1416ff8144c27d4de5.tar.gz manaverse-1680d159ecbf75591d2dab1416ff8144c27d4de5.tar.bz2 manaverse-1680d159ecbf75591d2dab1416ff8144c27d4de5.tar.xz manaverse-1680d159ecbf75591d2dab1416ff8144c27d4de5.zip |
Rename player_node variable into localPlayer.
Diffstat (limited to 'src/gui/windows/whoisonline.cpp')
-rw-r--r-- | src/gui/windows/whoisonline.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gui/windows/whoisonline.cpp b/src/gui/windows/whoisonline.cpp index 00187a31d..fc4c8cbc4 100644 --- a/src/gui/windows/whoisonline.cpp +++ b/src/gui/windows/whoisonline.cpp @@ -194,7 +194,7 @@ void WhoIsOnline::handleLink(const std::string& link, MouseEvent *event) } else if (event->getButton() == MouseButton::RIGHT) { - if (player_node && link == player_node->getName()) + if (localPlayer && link == localPlayer->getName()) return; if (viewport) @@ -751,17 +751,17 @@ void WhoIsOnline::setNeutralColor(OnlinePlayer *const player) if (!player) return; - if (actorManager && player_node) + if (actorManager && localPlayer) { const std::string &nick = player->getNick(); - if (nick == player_node->getName()) + if (nick == localPlayer->getName()) { player->setText("s"); return; } - if (player_node->isInParty()) + if (localPlayer->isInParty()) { - const Party *const party = player_node->getParty(); + const Party *const party = localPlayer->getParty(); if (party) { if (party->getMember(nick)) @@ -775,7 +775,7 @@ void WhoIsOnline::setNeutralColor(OnlinePlayer *const player) const Being *const being = actorManager->findBeingByName(nick); if (being) { - const Guild *const guild2 = player_node->getGuild(); + const Guild *const guild2 = localPlayer->getGuild(); if (guild2) { const Guild *const guild1 = being->getGuild(); |