summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-09-26 22:00:22 +0300
committerAndrei Karas <akaras@inbox.ru>2015-09-26 22:00:22 +0300
commitb6d994ed88ec99d08ef60a9ee567687873a18a30 (patch)
tree08520f8e4c05c3750642a31ad6656d2147f1424e /src/net
parent4e85bb63c240dfa3997a21e8a39d0b467c97c16c (diff)
downloadmanaplus-b6d994ed88ec99d08ef60a9ee567687873a18a30.tar.gz
manaplus-b6d994ed88ec99d08ef60a9ee567687873a18a30.tar.bz2
manaplus-b6d994ed88ec99d08ef60a9ee567687873a18a30.tar.xz
manaplus-b6d994ed88ec99d08ef60a9ee567687873a18a30.zip
Fix moving animation issue with move3 packets enabled.
Diffstat (limited to 'src/net')
-rw-r--r--src/net/ea/beingrecv.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/net/ea/beingrecv.cpp b/src/net/ea/beingrecv.cpp
index 72111e4e1..be3cc4cb9 100644
--- a/src/net/ea/beingrecv.cpp
+++ b/src/net/ea/beingrecv.cpp
@@ -413,6 +413,10 @@ void BeingRecv::processBeingMove3(Net::MessageIn &msg)
dstBeing->setWalkSpeed(Vector(speed, speed, 0));
int16_t x = msg.readInt16("x");
int16_t y = msg.readInt16("y");
+
+ dstBeing->setAction(BeingAction::STAND, 0);
+ dstBeing->setTileCoords(x, y);
+
const unsigned char *moves = msg.readBytes(len, "moving path");
Path path;
if (moves)