summaryrefslogtreecommitdiff
path: root/src/gui/popupmenu.cpp
diff options
context:
space:
mode:
authorYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2012-01-01 20:20:21 +0100
committerYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2012-01-10 20:31:51 +0100
commit683da50e37fbbb2e3f70a4421a06dabd9bb912d8 (patch)
tree065526585f7af480df2eae40ed0acc1595331fd4 /src/gui/popupmenu.cpp
parent8a88347e9ee6ce9f14d638cf602f3a763bc3ff01 (diff)
downloadmana-683da50e37fbbb2e3f70a4421a06dabd9bb912d8.tar.gz
mana-683da50e37fbbb2e3f70a4421a06dabd9bb912d8.tar.bz2
mana-683da50e37fbbb2e3f70a4421a06dabd9bb912d8.tar.xz
mana-683da50e37fbbb2e3f70a4421a06dabd9bb912d8.zip
player_node -> local_player
Reviewed-by: Ablu
Diffstat (limited to 'src/gui/popupmenu.cpp')
-rw-r--r--src/gui/popupmenu.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/gui/popupmenu.cpp b/src/gui/popupmenu.cpp
index fbe3c739..742d480d 100644
--- a/src/gui/popupmenu.cpp
+++ b/src/gui/popupmenu.cpp
@@ -126,11 +126,11 @@ void PopupMenu::showPopup(int x, int y, Being *being)
break;
}
- if (player_node->getNumberOfGuilds())
+ if (local_player->getNumberOfGuilds())
mBrowserBox->addRow(strprintf("@@guild|%s@@",
strprintf(_("Invite %s to join your guild"),
name.c_str()).c_str()));
- if (player_node->isInParty() ||
+ if (local_player->isInParty() ||
Net::getNetworkType() == ServerInfo::MANASERV)
{
mBrowserBox->addRow(strprintf("@@party|%s@@",
@@ -138,7 +138,7 @@ void PopupMenu::showPopup(int x, int y, Being *being)
name.c_str()).c_str()));
}
- if (player_node->isGM())
+ if (local_player->isGM())
{
mBrowserBox->addRow("##3---");
mBrowserBox->addRow(strprintf("@@admin-kick|%s@@",
@@ -162,7 +162,7 @@ void PopupMenu::showPopup(int x, int y, Being *being)
strprintf(_("Attack %s"),
name.c_str()).c_str()));
- if (player_node->isGM())
+ if (local_player->isGM())
mBrowserBox->addRow(strprintf("@@admin-kick|%s@@",
_("Kick monster")));
}
@@ -220,7 +220,7 @@ void PopupMenu::handleLink(const std::string &link)
// Attack action
else if (link == "attack" && being)
{
- player_node->attack(being, true);
+ local_player->attack(being, true);
}
else if (link == "whisper" && being)
{
@@ -253,13 +253,13 @@ void PopupMenu::handleLink(const std::string &link)
else if (link == "guild" && being &&
being->getType() == ActorSprite::PLAYER)
{
- player_node->inviteToGuild(being);
+ local_player->inviteToGuild(being);
}
// Pick Up Floor Item action
else if ((link == "pickup") && mFloorItem)
{
- player_node->pickUp(mFloorItem);
+ local_player->pickUp(mFloorItem);
}
// Look To action