diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-03-29 20:35:19 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-03-29 20:36:58 -0600 |
commit | bbf4d657e77fd39887b9941af1fe75a5ec27d988 (patch) | |
tree | d03c2973cff4d11e2eddbb856483369255ee40af /src/net/tmwserv/partyhandler.cpp | |
parent | 985e65f31b9cc06f13b733ddd5c7a9daa1331e21 (diff) | |
download | mana-bbf4d657e77fd39887b9941af1fe75a5ec27d988.tar.gz mana-bbf4d657e77fd39887b9941af1fe75a5ec27d988.tar.bz2 mana-bbf4d657e77fd39887b9941af1fe75a5ec27d988.tar.xz mana-bbf4d657e77fd39887b9941af1fe75a5ec27d988.zip |
Fix up eAthena party handling some more
Diffstat (limited to 'src/net/tmwserv/partyhandler.cpp')
-rw-r--r-- | src/net/tmwserv/partyhandler.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/net/tmwserv/partyhandler.cpp b/src/net/tmwserv/partyhandler.cpp index 510eb77a..08e58667 100644 --- a/src/net/tmwserv/partyhandler.cpp +++ b/src/net/tmwserv/partyhandler.cpp @@ -87,7 +87,7 @@ void PartyHandler::handleMessage(MessageIn &msg) case CPMSG_PARTY_NEW_MEMBER: { - msg.readInt16(); // being id + int id = msg.readInt16(); // being id std::string name = msg.readString(); localChatTab->chatLog(name + " joined the party"); @@ -95,12 +95,12 @@ void PartyHandler::handleMessage(MessageIn &msg) if (!player_node->getInParty()) player_node->setInParty(true); - partyWindow->addPartyMember(name); + partyWindow->updateMember(id, name); } break; case CPMSG_PARTY_MEMBER_LEFT: { - partyWindow->removePartyMember(msg.readString()); + partyWindow->removeMember(msg.readString()); } break; } } |