diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-05-18 23:57:51 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-05-18 23:57:51 +0300 |
commit | d7de4533368a36b77dbc2dbe21269690d8dc5ee5 (patch) | |
tree | 66e83823b788015013834dcc7520b0b6bdba68b5 /src/net/tmwa | |
parent | dc0102e6eb4ca9a202e190e6ee84b7141d4e0fe1 (diff) | |
download | plus-d7de4533368a36b77dbc2dbe21269690d8dc5ee5.tar.gz plus-d7de4533368a36b77dbc2dbe21269690d8dc5ee5.tar.bz2 plus-d7de4533368a36b77dbc2dbe21269690d8dc5ee5.tar.xz plus-d7de4533368a36b77dbc2dbe21269690d8dc5ee5.zip |
Fix random one tile desync in SMSG_BEING_MOVE3 packet.
Diffstat (limited to 'src/net/tmwa')
-rw-r--r-- | src/net/tmwa/beingrecv.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/net/tmwa/beingrecv.cpp b/src/net/tmwa/beingrecv.cpp index d5f1dbd6f..04c4a0444 100644 --- a/src/net/tmwa/beingrecv.cpp +++ b/src/net/tmwa/beingrecv.cpp @@ -1019,7 +1019,9 @@ void BeingRecv::processBeingMove(Net::MessageIn &msg) { dstBeing->setAction(BeingAction::STAND, 0); dstBeing->setTileCoords(srcX, srcY); - if (!serverFeatures->haveMove3()) + if (serverFeatures->haveMove3()) + dstBeing->setCachedDestination(dstX, dstY); + else dstBeing->setDestination(dstX, dstY); } |