summaryrefslogtreecommitdiff
path: root/src/commandhandler.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/commandhandler.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/commandhandler.cpp')
-rw-r--r--src/commandhandler.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/commandhandler.cpp b/src/commandhandler.cpp
index 25067fca..33584ed4 100644
--- a/src/commandhandler.cpp
+++ b/src/commandhandler.cpp
@@ -339,8 +339,8 @@ void CommandHandler::handleWhere(const std::string &args, ChatTab *tab)
{
std::ostringstream where;
where << Game::instance()->getCurrentMapName() << ", coordinates: "
- << player_node->getTileX() << ", "
- << player_node->getTileY();
+ << local_player->getTileX() << ", "
+ << local_player->getTileY();
tab->chatLog(where.str(), BY_SERVER);
}
@@ -385,7 +385,7 @@ void CommandHandler::handleMsg(const std::string &args, ChatTab *tab)
if (msg.length() > 0)
{
- std::string playerName = player_node->getName();
+ std::string playerName = local_player->getName();
std::string tempNick = recvnick;
toLower(playerName);
@@ -501,7 +501,7 @@ void CommandHandler::handleShowIp(const std::string &args, ChatTab *tab)
{
if (args.empty())
{
- tab->chatLog(player_node->getShowIp() ?
+ tab->chatLog(local_player->getShowIp() ?
_("Show IP: On") : _("Show IP: Off"));
return;
}
@@ -512,11 +512,11 @@ void CommandHandler::handleShowIp(const std::string &args, ChatTab *tab)
{
case 0:
tab->chatLog(_("Show IP: Off"));
- player_node->setShowIp(false);
+ local_player->setShowIp(false);
break;
case 1:
tab->chatLog(_("Show IP: On"));
- player_node->setShowIp(true);
+ local_player->setShowIp(true);
break;
case -1:
tab->chatLog(strprintf(BOOLEAN_OPTIONS, "showip"));
@@ -577,5 +577,5 @@ void CommandHandler::handleUnignore(const std::string &args, ChatTab *tab)
void CommandHandler::handleAway(const std::string &args, ChatTab *tab)
{
- player_node->setAway(args);
+ local_player->setAway(args);
}