From c33fe94a01b7a41de0b46aa1c5bc46f76e58a0b3 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 9 Sep 2014 13:24:44 +0300 Subject: Move processBeingChangeDirection from ea namespace into eathena and tmwa. --- src/net/ea/beinghandler.cpp | 27 --------------------------- 1 file changed, 27 deletions(-) (limited to 'src/net/ea/beinghandler.cpp') diff --git a/src/net/ea/beinghandler.cpp b/src/net/ea/beinghandler.cpp index 554cbf730..b878ed246 100644 --- a/src/net/ea/beinghandler.cpp +++ b/src/net/ea/beinghandler.cpp @@ -434,33 +434,6 @@ void BeingHandler::processPlayerGuilPartyInfo(Net::MessageIn &msg) const BLOCK_END("BeingHandler::processPlayerGuilPartyInfo") } -void BeingHandler::processBeingChangeDirection(Net::MessageIn &msg) const -{ - BLOCK_START("BeingHandler::processBeingChangeDirection") - if (!actorManager) - { - BLOCK_END("BeingHandler::processBeingChangeDirection") - return; - } - - Being *const dstBeing = actorManager->findBeing(msg.readInt32("being id")); - - if (!dstBeing) - { - BLOCK_END("BeingHandler::processBeingChangeDirection") - return; - } - - msg.readInt16("unused"); - - const uint8_t dir = static_cast( - msg.readUInt8("direction") & 0x0FU); - dstBeing->setDirection(dir); - if (localPlayer) - localPlayer->imitateDirection(dstBeing, dir); - BLOCK_END("BeingHandler::processBeingChangeDirection") -} - void BeingHandler::processPlayerStop(Net::MessageIn &msg) const { BLOCK_START("BeingHandler::processPlayerStop") -- cgit v1.2.3-70-g09d2