From 1680d159ecbf75591d2dab1416ff8144c27d4de5 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 30 Jul 2014 12:25:16 +0300 Subject: Rename player_node variable into localPlayer. --- src/gui/windows/socialwindow.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/gui/windows/socialwindow.cpp') 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); -- cgit v1.2.3-60-g2f50