diff options
Diffstat (limited to 'src/net/ea/partyhandler.cpp')
-rw-r--r-- | src/net/ea/partyhandler.cpp | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/net/ea/partyhandler.cpp b/src/net/ea/partyhandler.cpp index d16578840..76d02aca7 100644 --- a/src/net/ea/partyhandler.cpp +++ b/src/net/ea/partyhandler.cpp @@ -221,29 +221,6 @@ void PartyHandler::processPartyLeave(Net::MessageIn &msg) } } -void PartyHandler::processPartyUpdateHp(Net::MessageIn &msg) -{ - const int id = msg.readInt32("id"); - const int hp = msg.readInt16("hp"); - const int maxhp = msg.readInt16("max hp"); - PartyMember *m = nullptr; - if (Ea::taParty) - m = Ea::taParty->getMember(id); - if (m) - { - 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 (actorManager && Ea::taParty) - { - if (Being *const b = actorManager->findBeing(id)) - b->setParty(Ea::taParty); - } -} - void PartyHandler::processPartyUpdateCoords(Net::MessageIn &msg) { const int id = msg.readInt32("id"); |