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/guildmanager.cpp | |
parent | 9913b4b481ddcaf0fa8499f3554c85bb588be7f0 (diff) | |
download | manaplus-1680d159ecbf75591d2dab1416ff8144c27d4de5.tar.gz manaplus-1680d159ecbf75591d2dab1416ff8144c27d4de5.tar.bz2 manaplus-1680d159ecbf75591d2dab1416ff8144c27d4de5.tar.xz manaplus-1680d159ecbf75591d2dab1416ff8144c27d4de5.zip |
Rename player_node variable into localPlayer.
Diffstat (limited to 'src/guildmanager.cpp')
-rw-r--r-- | src/guildmanager.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/guildmanager.cpp b/src/guildmanager.cpp index 211735158..69d5dfc9d 100644 --- a/src/guildmanager.cpp +++ b/src/guildmanager.cpp @@ -122,11 +122,11 @@ void GuildManager::send(const std::string &msg) void GuildManager::chat(const std::string &msg) { - if (!player_node || !mTab) + if (!localPlayer || !mTab) return; Net::getChatHandler()->privateMessage("guild", msg); - mTab->chatLog(player_node->getName(), msg); + mTab->chatLog(localPlayer->getName(), msg); } void GuildManager::getNames(StringVect &names) const @@ -201,7 +201,7 @@ void GuildManager::updateList() m->setPos(10); else m->setPos(0); - if (player_node && name == player_node->getName()) + if (localPlayer && name == localPlayer->getName()) { mHavePower = (status & 2); m->setOnline(true); @@ -233,8 +233,8 @@ void GuildManager::createTab(Guild *const guild) mTab = new GuildChatTab(chatWindow); if (config.getBoolValue("showChatHistory")) mTab->loadFromLogFile("#Guild"); - if (player_node) - player_node->addGuild(guild); + if (localPlayer) + localPlayer->addGuild(guild); } } @@ -317,8 +317,8 @@ bool GuildManager::process(std::string msg) return false; msg = msg.substr(0, pos); guild->setName(msg); - if (player_node) - player_node->setGuildName(msg); + if (localPlayer) + localPlayer->setGuildName(msg); mGotName = true; mSentNameRequest = false; mRequest = false; @@ -356,8 +356,8 @@ bool GuildManager::process(std::string msg) // logger->log("guild name: %s", msg.c_str()); guild->setName(msg); - if (player_node) - player_node->setGuildName(msg); + if (localPlayer) + localPlayer->setGuildName(msg); mGotName = true; mSentNameRequest = false; mRequest = false; @@ -517,10 +517,10 @@ bool GuildManager::afterRemove() return false; guild->removeFromMembers(); guild->clearMembers(); - if (player_node) + if (localPlayer) { - player_node->setGuildName(""); - player_node->clearGuilds(); + localPlayer->setGuildName(""); + localPlayer->clearGuilds(); } NotifyManager::notify(NotifyTypes::GUILD_LEFT); delete2(mTab); |