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/tmwa/guildhandler.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/net/tmwa/guildhandler.cpp')
-rw-r--r-- | src/net/tmwa/guildhandler.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/net/tmwa/guildhandler.cpp b/src/net/tmwa/guildhandler.cpp index af45d63cc..a97da4153 100644 --- a/src/net/tmwa/guildhandler.cpp +++ b/src/net/tmwa/guildhandler.cpp @@ -245,12 +245,12 @@ void GuildHandler::inviteResponse(const int guildId, const bool response) const void GuildHandler::leave(const int guildId) const { - if (!player_node) + if (!localPlayer) return; MessageOut msg(CMSG_GUILD_LEAVE); msg.writeInt32(guildId); - msg.writeInt32(player_node->getId()); // Account ID + msg.writeInt32(localPlayer->getId()); // Account ID msg.writeInt32(PlayerInfo::getCharId()); // Char ID msg.writeString("", 40); // Message } @@ -271,10 +271,10 @@ void GuildHandler::kick(const GuildMember *restrict const member, void GuildHandler::chat(const int guildId A_UNUSED, const std::string &text) const { - if (!player_node) + if (!localPlayer) return; - const std::string str = std::string(player_node->getName()).append( + const std::string str = std::string(localPlayer->getName()).append( " : ").append(text); MessageOut msg(CMSG_GUILD_MESSAGE); msg.writeInt16(static_cast<uint16_t>(str.size() + 4)); |