summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2010-02-25 22:24:40 -0700
committerJared Adams <jaxad0127@gmail.com>2010-02-26 06:28:37 -0700
commitc1ddb267382472db7a248fcd049dcd41122d3a48 (patch)
tree4e53730ada1b7486e4c5b813d86b3b01813daeba
parent81c9926450abe3635ffc9c976571415c8c1873ef (diff)
downloadmana-client-c1ddb267382472db7a248fcd049dcd41122d3a48.tar.gz
mana-client-c1ddb267382472db7a248fcd049dcd41122d3a48.tar.bz2
mana-client-c1ddb267382472db7a248fcd049dcd41122d3a48.tar.xz
mana-client-c1ddb267382472db7a248fcd049dcd41122d3a48.zip
Make sure LocalPlayer and party members get their party set
Reviewed-by: Thorbjørn Lindeijer
-rw-r--r--src/net/ea/partyhandler.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/net/ea/partyhandler.cpp b/src/net/ea/partyhandler.cpp
index 3e12e4b4..922e59d1 100644
--- a/src/net/ea/partyhandler.cpp
+++ b/src/net/ea/partyhandler.cpp
@@ -105,6 +105,8 @@ void PartyHandler::handleMessage(Net::MessageIn &msg)
member->setLeader(leader);
member->setOnline(online);
}
+
+ player_node->setParty(eaParty);
}
break;
case SMSG_PARTY_INVITE_RESPONSE:
@@ -266,6 +268,13 @@ void PartyHandler::handleMessage(Net::MessageIn &msg)
m->setHp(hp);
m->setMaxHp(maxhp);
}
+
+ // The server only sends this when the member is in range, so
+ // lets make sure they get the party hilight.
+ if (Being *b = beingManager->findBeing(id))
+ {
+ static_cast<Player*>(b)->setParty(eaParty);
+ }
}
break;
case SMSG_PARTY_UPDATE_COORDS: