diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-01-19 22:00:43 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-01-19 22:00:43 +0300 |
commit | 7a618aa66e0b5b7df3bccd1bf1df908f1b421629 (patch) | |
tree | 7b2c784e7887c7943941ed20b63759c5025c2697 /src | |
parent | b0b085453510ae5922e6f819a22f7cf46354036e (diff) | |
download | plus-7a618aa66e0b5b7df3bccd1bf1df908f1b421629.tar.gz plus-7a618aa66e0b5b7df3bccd1bf1df908f1b421629.tar.bz2 plus-7a618aa66e0b5b7df3bccd1bf1df908f1b421629.tar.xz plus-7a618aa66e0b5b7df3bccd1bf1df908f1b421629.zip |
eathena: fix follow.
Diffstat (limited to 'src')
-rw-r--r-- | src/net/eathena/beinghandler.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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) |