From a4c4a2c804f34b64aefce1847ba837a41b849fea Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 1 Sep 2011 22:26:09 +0300 Subject: Remove party name from players if leave party. --- src/net/ea/partyhandler.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/net/ea/partyhandler.cpp b/src/net/ea/partyhandler.cpp index 045a2332b..bd6f19d97 100644 --- a/src/net/ea/partyhandler.cpp +++ b/src/net/ea/partyhandler.cpp @@ -359,6 +359,7 @@ void PartyHandler::processPartyLeave(Net::MessageIn &msg) if (socialWindow && Ea::taParty) socialWindow->removeTab(Ea::taParty); + player_node->setPartyName(""); } else { @@ -372,7 +373,10 @@ void PartyHandler::processPartyLeave(Net::MessageIn &msg) { Being *b = actorSpriteManager->findBeing(id); if (b && b->getType() == Being::PLAYER) + { b->setParty(0); + b->setPartyName(""); + } } if (Ea::taParty) Ea::taParty->removeMember(id); -- cgit v1.2.3-70-g09d2