summaryrefslogtreecommitdiff
path: root/src/net/tmwserv
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-03-29 20:35:19 -0600
committerJared Adams <jaxad0127@gmail.com>2009-03-29 20:36:58 -0600
commitbbf4d657e77fd39887b9941af1fe75a5ec27d988 (patch)
treed03c2973cff4d11e2eddbb856483369255ee40af /src/net/tmwserv
parent985e65f31b9cc06f13b733ddd5c7a9daa1331e21 (diff)
downloadmana-client-bbf4d657e77fd39887b9941af1fe75a5ec27d988.tar.gz
mana-client-bbf4d657e77fd39887b9941af1fe75a5ec27d988.tar.bz2
mana-client-bbf4d657e77fd39887b9941af1fe75a5ec27d988.tar.xz
mana-client-bbf4d657e77fd39887b9941af1fe75a5ec27d988.zip
Fix up eAthena party handling some more
Diffstat (limited to 'src/net/tmwserv')
-rw-r--r--src/net/tmwserv/partyhandler.cpp6
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;
}
}