diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-09 13:24:44 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-09 13:24:44 +0300 |
commit | c33fe94a01b7a41de0b46aa1c5bc46f76e58a0b3 (patch) | |
tree | 4c62fccf401fbe57d51e0ca5f3ac020e59ced61c /src/net/ea | |
parent | 72a83628abdde8cb5eb3e0973677266edf91997d (diff) | |
download | manaverse-c33fe94a01b7a41de0b46aa1c5bc46f76e58a0b3.tar.gz manaverse-c33fe94a01b7a41de0b46aa1c5bc46f76e58a0b3.tar.bz2 manaverse-c33fe94a01b7a41de0b46aa1c5bc46f76e58a0b3.tar.xz manaverse-c33fe94a01b7a41de0b46aa1c5bc46f76e58a0b3.zip |
Move processBeingChangeDirection from ea namespace into eathena and tmwa.
Diffstat (limited to 'src/net/ea')
-rw-r--r-- | src/net/ea/beinghandler.cpp | 27 | ||||
-rw-r--r-- | src/net/ea/beinghandler.h | 2 |
2 files changed, 0 insertions, 29 deletions
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<uint8_t>( - 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") diff --git a/src/net/ea/beinghandler.h b/src/net/ea/beinghandler.h index e68e382f6..05e3b5af4 100644 --- a/src/net/ea/beinghandler.h +++ b/src/net/ea/beinghandler.h @@ -64,8 +64,6 @@ class BeingHandler notfinal : public Net::BeingHandler virtual void processPlayerGuilPartyInfo(Net::MessageIn &msg) const; - virtual void processBeingChangeDirection(Net::MessageIn &msg) const; - virtual void processPlayerStop(Net::MessageIn &msg) const; virtual void processPlayerMoveToAttack(Net::MessageIn &msg) const; |