diff options
Diffstat (limited to 'src/net/ea')
-rw-r--r-- | src/net/ea/beinghandler.cpp | 40 | ||||
-rw-r--r-- | src/net/ea/beinghandler.h | 2 |
2 files changed, 0 insertions, 42 deletions
diff --git a/src/net/ea/beinghandler.cpp b/src/net/ea/beinghandler.cpp index 3da2ffd02..e609cff21 100644 --- a/src/net/ea/beinghandler.cpp +++ b/src/net/ea/beinghandler.cpp @@ -95,46 +95,6 @@ void BeingHandler::setSprite(Being *const being, const unsigned int slot, being->updateSprite(slot, id, color, colorId, isWeapon, isTempSprite); } -void BeingHandler::processBeingMove2(Net::MessageIn &msg) const -{ - BLOCK_START("BeingHandler::processBeingMove2") - if (!actorManager) - { - BLOCK_END("BeingHandler::processBeingMove2") - return; - } - - /* - * A simplified movement packet, used by the - * later versions of eAthena for both mobs and - * players - */ - Being *const dstBeing = actorManager->findBeing(msg.readInt32("being id")); - - /* - * This packet doesn't have enough info to actually - * create a new being, so if the being isn't found, - * we'll just pretend the packet didn't happen - */ - - if (!dstBeing) - { - BLOCK_END("BeingHandler::processBeingMove2") - return; - } - - uint16_t srcX, srcY, dstX, dstY; - msg.readCoordinatePair(srcX, srcY, dstX, dstY, "move path"); - msg.readInt32("tick"); - - dstBeing->setAction(BeingAction::STAND, 0); - dstBeing->setTileCoords(srcX, srcY); - dstBeing->setDestination(dstX, dstY); - if (dstBeing->getType() == ActorType::PLAYER) - dstBeing->setMoveTime(); - BLOCK_END("BeingHandler::processBeingMove2") -} - void BeingHandler::processBeingRemove(Net::MessageIn &msg) const { BLOCK_START("BeingHandler::processBeingRemove") diff --git a/src/net/ea/beinghandler.h b/src/net/ea/beinghandler.h index 4405f1975..e68e382f6 100644 --- a/src/net/ea/beinghandler.h +++ b/src/net/ea/beinghandler.h @@ -46,8 +46,6 @@ class BeingHandler notfinal : public Net::BeingHandler const bool isWeapon = false, const bool isTempSprite = false) const; - virtual void processBeingMove2(Net::MessageIn &msg) const; - virtual void processBeingRemove(Net::MessageIn &msg) const; virtual void processBeingResurrect(Net::MessageIn &msg) const; |