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/net/ea/guildhandler.cpp | |
parent | 9913b4b481ddcaf0fa8499f3554c85bb588be7f0 (diff) | |
download | manaverse-1680d159ecbf75591d2dab1416ff8144c27d4de5.tar.gz manaverse-1680d159ecbf75591d2dab1416ff8144c27d4de5.tar.bz2 manaverse-1680d159ecbf75591d2dab1416ff8144c27d4de5.tar.xz manaverse-1680d159ecbf75591d2dab1416ff8144c27d4de5.zip |
Rename player_node variable into localPlayer.
Diffstat (limited to 'src/net/ea/guildhandler.cpp')
-rw-r--r-- | src/net/ea/guildhandler.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/net/ea/guildhandler.cpp b/src/net/ea/guildhandler.cpp index 42c6b0ec5..de1d2763c 100644 --- a/src/net/ea/guildhandler.cpp +++ b/src/net/ea/guildhandler.cpp @@ -127,15 +127,15 @@ void GuildHandler::processGuildPositionInfo(Net::MessageIn &msg) const guildTab = new GuildTab(chatWindow); if (config.getBoolValue("showChatHistory")) guildTab->loadFromLogFile("#Guild"); - if (player_node) - player_node->addGuild(taGuild); + if (localPlayer) + localPlayer->addGuild(taGuild); memberList(guildId); } - if (player_node) + if (localPlayer) { - player_node->setGuild(g); - player_node->setGuildName(g->getName()); + localPlayer->setGuild(g); + localPlayer->setGuildName(g->getName()); } logger->log("Guild position info: %d %d %d %s\n", guildId, @@ -457,10 +457,10 @@ void GuildHandler::processGuildLeave(Net::MessageIn &msg) const if (taGuild) taGuild->removeMember(nick); - if (!player_node) + if (!localPlayer) return; - if (nick == player_node->getName()) + if (nick == localPlayer->getName()) { if (taGuild) { @@ -500,10 +500,10 @@ void GuildHandler::processGuildExpulsion(Net::MessageIn &msg) const if (taGuild) taGuild->removeMember(nick); - if (!player_node) + if (!localPlayer) return; - if (nick == player_node->getName()) + if (nick == localPlayer->getName()) { if (taGuild) { |