aboutsummaryrefslogtreecommitdiff
path: root/src/game/MovementHandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/MovementHandler.cpp')
-rw-r--r--src/game/MovementHandler.cpp48
1 files changed, 23 insertions, 25 deletions
diff --git a/src/game/MovementHandler.cpp b/src/game/MovementHandler.cpp
index 78ae1145a06..48a84a0cded 100644
--- a/src/game/MovementHandler.cpp
+++ b/src/game/MovementHandler.cpp
@@ -577,43 +577,41 @@ void WorldSession::HandleMountSpecialAnimOpcode(WorldPacket& /*recvdata*/)
GetPlayer()->SendMessageToSet(&data, false);
}
-void WorldSession::HandleMoveKnockBackAck( WorldPacket & /*recv_data*/ )
+void WorldSession::HandleMoveKnockBackAck( WorldPacket & recv_data )
{
sLog.outDebug("CMSG_MOVE_KNOCK_BACK_ACK");
- // Currently not used but maybe use later for recheck final player position
- // (must be at call same as into "recv_data >> x >> y >> z >> orientation;"
- /*
- uint32 flags, time;
- float x, y, z, orientation;
- uint64 guid;
- uint32 sequence;
- uint32 ukn1;
- float xdirection,ydirection,hspeed,vspeed;
-
- recv_data >> guid;
- recv_data >> sequence;
- recv_data >> flags >> time;
- recv_data >> x >> y >> z >> orientation;
- recv_data >> ukn1; //unknown
- recv_data >> vspeed >> xdirection >> ydirection >> hspeed;
+ recv_data.read_skip<uint64>(); // guid
+ recv_data.read_skip<uint32>(); // unk
- // skip not personal message;
- if(GetPlayer()->GetGUID()!=guid)
- return;
-
- // check code
- */
+ MovementInfo movementInfo;
+ ReadMovementInfo(recv_data, &movementInfo);
}
-void WorldSession::HandleMoveHoverAck( WorldPacket& /*recv_data*/ )
+void WorldSession::HandleMoveHoverAck( WorldPacket& recv_data )
{
sLog.outDebug("CMSG_MOVE_HOVER_ACK");
+
+ recv_data.read_skip<uint64>(); // guid
+ recv_data.read_skip<uint32>(); // unk
+
+ MovementInfo movementInfo;
+ ReadMovementInfo(recv_data, &movementInfo);
+
+ recv_data.read_skip<uint32>(); // unk2
}
-void WorldSession::HandleMoveWaterWalkAck(WorldPacket& /*recv_data*/)
+void WorldSession::HandleMoveWaterWalkAck(WorldPacket& recv_data)
{
sLog.outDebug("CMSG_MOVE_WATER_WALK_ACK");
+
+ recv_data.read_skip<uint64>(); // guid
+ recv_data.read_skip<uint32>(); // unk
+
+ MovementInfo movementInfo;
+ ReadMovementInfo(recv_data, &movementInfo);
+
+ recv_data.read_skip<uint32>(); // unk2
}
void WorldSession::HandleSummonResponseOpcode(WorldPacket& recv_data)