summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/net/eathena/beinghandler.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/net/eathena/beinghandler.cpp b/src/net/eathena/beinghandler.cpp
index bdfeb813a..d87455c81 100644
--- a/src/net/eathena/beinghandler.cpp
+++ b/src/net/eathena/beinghandler.cpp
@@ -926,6 +926,11 @@ void BeingHandler::processBeingMove2(Net::MessageIn &msg) const
*/
Being *const dstBeing = actorManager->findBeing(msg.readInt32("being id"));
+ uint16_t srcX, srcY, dstX, dstY;
+ msg.readCoordinatePair(srcX, srcY, dstX, dstY, "move path");
+ msg.readUInt8("(sx<<4) | (sy&0x0f)");
+ msg.readInt32("tick");
+
/*
* This packet doesn't have enough info to actually
* create a new being, so if the being isn't found,
@@ -938,10 +943,6 @@ void BeingHandler::processBeingMove2(Net::MessageIn &msg) const
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);