diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-09-01 22:26:09 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-09-01 22:26:09 +0300 |
commit | a4c4a2c804f34b64aefce1847ba837a41b849fea (patch) | |
tree | bab4df8603d31e7132f9b5ade4a70b4512dd0c95 /src | |
parent | b8cdabbd20690d57930dce9dda949fca21a6233a (diff) | |
download | manaverse-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')
-rw-r--r-- | src/net/ea/partyhandler.cpp | 4 |
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); |