diff options
author | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2012-01-01 20:20:21 +0100 |
---|---|---|
committer | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2012-01-10 20:31:51 +0100 |
commit | 683da50e37fbbb2e3f70a4421a06dabd9bb912d8 (patch) | |
tree | 065526585f7af480df2eae40ed0acc1595331fd4 /src/net/tmwa/partyhandler.cpp | |
parent | 8a88347e9ee6ce9f14d638cf602f3a763bc3ff01 (diff) | |
download | mana-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/net/tmwa/partyhandler.cpp')
-rw-r--r-- | src/net/tmwa/partyhandler.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/net/tmwa/partyhandler.cpp b/src/net/tmwa/partyhandler.cpp index 2cfc2037..47182121 100644 --- a/src/net/tmwa/partyhandler.cpp +++ b/src/net/tmwa/partyhandler.cpp @@ -104,7 +104,7 @@ void PartyHandler::handleMessage(Net::MessageIn &msg) member->setOnline(online); } - player_node->setParty(taParty); + local_player->setParty(taParty); } break; case SMSG_PARTY_INVITE_RESPONSE: @@ -229,7 +229,7 @@ void PartyHandler::handleMessage(Net::MessageIn &msg) int id = msg.readInt32(); std::string nick = msg.readString(24); msg.readInt8(); // fail - if (id == player_node->getId()) + if (id == local_player->getId()) { taParty->removeFromMembers(); taParty->clearMembers(); @@ -344,7 +344,7 @@ void PartyHandler::invite(const std::string &name) void PartyHandler::inviteResponse(const std::string &inviter, bool accept) { MessageOut outMsg(CMSG_PARTY_INVITED); - outMsg.writeInt32(player_node->getId()); + outMsg.writeInt32(local_player->getId()); outMsg.writeInt32(accept ? 1 : 0); } |