summaryrefslogtreecommitdiff
path: root/src/gui/windows/socialwindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-07-30 12:25:16 +0300
committerAndrei Karas <akaras@inbox.ru>2014-07-30 12:25:16 +0300
commit1680d159ecbf75591d2dab1416ff8144c27d4de5 (patch)
treecd34ad27487036265f08d7aa63476c160280d899 /src/gui/windows/socialwindow.cpp
parent9913b4b481ddcaf0fa8499f3554c85bb588be7f0 (diff)
downloadplus-1680d159ecbf75591d2dab1416ff8144c27d4de5.tar.gz
plus-1680d159ecbf75591d2dab1416ff8144c27d4de5.tar.bz2
plus-1680d159ecbf75591d2dab1416ff8144c27d4de5.tar.xz
plus-1680d159ecbf75591d2dab1416ff8144c27d4de5.zip
Rename player_node variable into localPlayer.
Diffstat (limited to 'src/gui/windows/socialwindow.cpp')
-rw-r--r--src/gui/windows/socialwindow.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/gui/windows/socialwindow.cpp b/src/gui/windows/socialwindow.cpp
index d5ef89d0c..bbfa91a81 100644
--- a/src/gui/windows/socialwindow.cpp
+++ b/src/gui/windows/socialwindow.cpp
@@ -148,11 +148,11 @@ void SocialWindow::postInit()
mPickupFilter = nullptr;
}
- if (player_node && player_node->getParty())
- addTab(player_node->getParty());
+ if (localPlayer && localPlayer->getParty())
+ addTab(localPlayer->getParty());
- if (player_node && player_node->getGuild())
- addTab(player_node->getGuild());
+ if (localPlayer && localPlayer->getGuild())
+ addTab(localPlayer->getGuild());
enableVisibleSound(true);
updateButtons();
@@ -488,10 +488,10 @@ void SocialWindow::showPartyInvite(const std::string &restrict partyName,
void SocialWindow::showPartyCreate()
{
- if (!player_node)
+ if (!localPlayer)
return;
- if (player_node->getParty())
+ if (localPlayer->getParty())
{
// TRANSLATORS: party creation message
new OkDialog(_("Create Party"),
@@ -623,10 +623,10 @@ void SocialWindow::updatePickupFilter()
void SocialWindow::updateParty()
{
- if (!player_node)
+ if (!localPlayer)
return;
- Party *const party = player_node->getParty();
+ Party *const party = localPlayer->getParty();
if (party)
{
PartyMap::iterator it = mParties.find(party);
@@ -657,10 +657,10 @@ void SocialWindow::setCounter(const SocialTab *const tab,
void SocialWindow::updateGuildCounter(const int online, const int total)
{
- if (!player_node)
+ if (!localPlayer)
return;
- Guild *const guild = player_node->getGuild();
+ Guild *const guild = localPlayer->getGuild();
if (guild)
{
GuildMap::iterator it = mGuilds.find(guild);