From 7a618aa66e0b5b7df3bccd1bf1df908f1b421629 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 19 Jan 2015 22:00:43 +0300 Subject: eathena: fix follow. --- src/net/eathena/beinghandler.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/net/eathena/beinghandler.cpp b/src/net/eathena/beinghandler.cpp index f74a51fc4..c1ebcefca 100644 --- a/src/net/eathena/beinghandler.cpp +++ b/src/net/eathena/beinghandler.cpp @@ -798,6 +798,8 @@ void BeingHandler::processBeingMove(Net::MessageIn &msg) msg.readInt8("ys"); dstBeing->setAction(BeingAction::STAND, 0); dstBeing->setTileCoords(srcX, srcY); + if (localPlayer) + localPlayer->followMoveTo(dstBeing, srcX, srcY, dstX, dstY); if (!serverFeatures->haveMove3()) dstBeing->setDestination(dstX, dstY); @@ -1086,6 +1088,8 @@ void BeingHandler::processBeingMove2(Net::MessageIn &msg) dstBeing->setAction(BeingAction::STAND, 0); dstBeing->setTileCoords(srcX, srcY); + if (localPlayer) + localPlayer->followMoveTo(dstBeing, srcX, srcY, dstX, dstY); if (!serverFeatures->haveMove3()) dstBeing->setDestination(dstX, dstY); if (dstBeing->getType() == ActorType::Player) -- cgit v1.2.3-60-g2f50