summaryrefslogtreecommitdiff
path: root/src/net/ea
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-05-12 10:41:31 -0600
committerJared Adams <jaxad0127@gmail.com>2009-05-12 10:41:31 -0600
commita2aa7c577b6d69b8185111a8ea8781957ce45b38 (patch)
tree5cd34f507fd16a9c66f7e83fffea3e94a49acaac /src/net/ea
parentfd47b191acef2230183cee1ab54901c777291e46 (diff)
downloadmana-a2aa7c577b6d69b8185111a8ea8781957ce45b38.tar.gz
mana-a2aa7c577b6d69b8185111a8ea8781957ce45b38.tar.bz2
mana-a2aa7c577b6d69b8185111a8ea8781957ce45b38.tar.xz
mana-a2aa7c577b6d69b8185111a8ea8781957ce45b38.zip
Handle in party status in a much saner way
Diffstat (limited to 'src/net/ea')
-rw-r--r--src/net/ea/partyhandler.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/net/ea/partyhandler.cpp b/src/net/ea/partyhandler.cpp
index 0eda7792..072297dd 100644
--- a/src/net/ea/partyhandler.cpp
+++ b/src/net/ea/partyhandler.cpp
@@ -102,10 +102,6 @@ void PartyHandler::handleMessage(MessageIn &msg)
bool online = msg.readInt8() == 0;
partyWindow->updateMember(id, nick, leader, online);
-
- Being *being = beingManager->findBeing(id);
- if (being)
- being->setName(nick);
}
}
break;
@@ -229,7 +225,6 @@ void PartyHandler::handleMessage(MessageIn &msg)
msg.readInt8(); // fail
if (id == player_node->getId())
{
- player_node->setInParty(false);
partyWindow->clearMembers();
partyWindow->setVisible(false);
partyTab->chatLog(_("You have left the party."), BY_SERVER);
@@ -306,7 +301,7 @@ void PartyHandler::inviteResponse(const std::string &inviter, bool accept)
MessageOut outMsg(CMSG_PARTY_INVITED);
outMsg.writeInt32(player_node->getId());
outMsg.writeInt32(accept ? 1 : 0);
- player_node->setInParty(player_node->getInParty() || accept);
+ player_node->setInParty(player_node->isInParty() || accept);
}
void PartyHandler::leave()