diff options
author | Subv <s.v.h21@hotmail.com> | 2012-12-25 21:49:48 -0500 |
---|---|---|
committer | Subv <s.v.h21@hotmail.com> | 2012-12-25 21:50:39 -0500 |
commit | 9a11b59ba873addb39c9817317f80d43797bf3d5 (patch) | |
tree | 6ecc1d981f070dbc32c2563bb0a55e63043c4fa0 /src/server/game/Handlers/MovementHandler.cpp | |
parent | e65da39f23ed4dfad38585ccf09ddcfc3138bbb7 (diff) |
Core/Vehicles: Fixed riding vehicles and mind control auras.
Actually, fixed everything that allows you to control another unit.
Diffstat (limited to 'src/server/game/Handlers/MovementHandler.cpp')
-rw-r--r-- | src/server/game/Handlers/MovementHandler.cpp | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/src/server/game/Handlers/MovementHandler.cpp b/src/server/game/Handlers/MovementHandler.cpp index 5adaba3f5ec..b3a5c9fac82 100644 --- a/src/server/game/Handlers/MovementHandler.cpp +++ b/src/server/game/Handlers/MovementHandler.cpp @@ -535,14 +535,8 @@ void WorldSession::HandleMoveNotActiveMover(WorldPacket &recvData) { sLog->outDebug(LOG_FILTER_NETWORKIO, "WORLD: Recvd CMSG_MOVE_NOT_ACTIVE_MOVER"); - uint64 old_mover_guid; - recvData.readPackGUID(old_mover_guid); - MovementInfo mi; ReadMovementInfo(recvData, &mi); - - mi.guid = old_mover_guid; - _player->m_movementInfo = mi; } @@ -558,21 +552,16 @@ void WorldSession::HandleMoveKnockBackAck(WorldPacket& recvData) { sLog->outDebug(LOG_FILTER_NETWORKIO, "CMSG_MOVE_KNOCK_BACK_ACK"); - uint64 guid; - recvData.readPackGUID(guid); - - if (_player->m_mover->GetGUID() != guid) - return; - - recvData.read_skip<uint32>(); // unk - MovementInfo movementInfo; ReadMovementInfo(recvData, &movementInfo); + if (_player->m_mover->GetGUID() != movementInfo.guid) + return; + _player->m_movementInfo = movementInfo; WorldPacket data(SMSG_MOVE_UPDATE_KNOCK_BACK, 66); - data.appendPackGUID(guid); + data.appendPackGUID(movementInfo.guid); _player->BuildMovementPacket(&data); // knockback specific info |