summaryrefslogtreecommitdiff
path: root/src/net/ea/partyhandler.cpp
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 /src/net/ea/partyhandler.cpp
parentb8cdabbd20690d57930dce9dda949fca21a6233a (diff)
downloadManaVerse-a4c4a2c804f34b64aefce1847ba837a41b849fea.tar.gz
ManaVerse-a4c4a2c804f34b64aefce1847ba837a41b849fea.tar.bz2
ManaVerse-a4c4a2c804f34b64aefce1847ba837a41b849fea.tar.xz
ManaVerse-a4c4a2c804f34b64aefce1847ba837a41b849fea.zip
Remove party name from players if leave party.
Diffstat (limited to 'src/net/ea/partyhandler.cpp')
-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);