diff options
Diffstat (limited to 'src/net/ea/beinghandler.cpp')
-rw-r--r-- | src/net/ea/beinghandler.cpp | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/src/net/ea/beinghandler.cpp b/src/net/ea/beinghandler.cpp index c86414022..d50366884 100644 --- a/src/net/ea/beinghandler.cpp +++ b/src/net/ea/beinghandler.cpp @@ -418,52 +418,6 @@ void BeingHandler::processPvpMapMode(Net::MessageIn &msg) BLOCK_END("BeingHandler::processPvpMapMode") } -void BeingHandler::processNameResponse2(Net::MessageIn &msg) -{ - BLOCK_START("BeingHandler::processNameResponse2") - if (!actorManager || !localPlayer) - { - BLOCK_END("BeingHandler::processNameResponse2") - return; - } - - const int len = msg.readInt16("len"); - const BeingId beingId = msg.readBeingId("account ic"); - const std::string str = msg.readString(len - 8, "name"); - Being *const dstBeing = actorManager->findBeing(beingId); - if (dstBeing) - { - if (beingId == localPlayer->getId()) - { - localPlayer->pingResponse(); - } - else - { - dstBeing->setName(str); - dstBeing->updateGuild(); - dstBeing->addToCache(); - - if (dstBeing->getType() == ActorType::Player) - dstBeing->updateColors(); - - if (localPlayer) - { - const Party *const party = localPlayer->getParty(); - if (party && party->isMember(dstBeing->getId())) - { - PartyMember *const member = party->getMember( - dstBeing->getId()); - - if (member) - member->setName(dstBeing->getName()); - } - localPlayer->checkNewName(dstBeing); - } - } - } - BLOCK_END("BeingHandler::processNameResponse2") -} - void BeingHandler::processBeingMove3(Net::MessageIn &msg) { BLOCK_START("BeingHandler::processBeingMove3") |