summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-09-01 22:26:09 +0300
committerAndrei Karas <akaras@inbox.ru>2011-09-01 22:26:09 +0300
commita4c4a2c804f34b64aefce1847ba837a41b849fea (patch)
treebab4df8603d31e7132f9b5ade4a70b4512dd0c95
parentb8cdabbd20690d57930dce9dda949fca21a6233a (diff)
downloadmv-a4c4a2c804f34b64aefce1847ba837a41b849fea.tar.gz
mv-a4c4a2c804f34b64aefce1847ba837a41b849fea.tar.bz2
mv-a4c4a2c804f34b64aefce1847ba837a41b849fea.tar.xz
mv-a4c4a2c804f34b64aefce1847ba837a41b849fea.zip
Remove party name from players if leave party.
-rw-r--r--src/net/ea/partyhandler.cpp4
1 files changed, 4 insertions, 0 deletions
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);