diff options
author | Machiavelli <machiavelli.trinity@gmail.com> | 2012-03-17 20:34:03 +0100 |
---|---|---|
committer | Machiavelli <machiavelli.trinity@gmail.com> | 2012-03-17 20:36:12 +0100 |
commit | 41cc704bf86dc1832a18cdd7ecd387fbb9137775 (patch) | |
tree | 1125a82fd2132e7012b474c94658c3d179ab9360 /src/server/game/Handlers/MovementHandler.cpp | |
parent | 01f3620d4534d2bdafadf9a04f09330d406bd019 (diff) |
Core/Movement:
- Don't abort relocation if movementflag restrictions were violated. There might be lag between client and server and even different parts of the core that made this approach improper.
- MOVEMENTFLAG_ROOT cannot be used in conjunction with MOVEMENTFLAG_MASK_MOVING, but it's a valid flag to receive from client.
- Fix falling to ground when unapplying fly/waterwalk aura. NOTE: This is a client-side initiated fall, in the future this should be initiated and updated by the server. (Working on it)
- Rename MOVEMENTFLAG_FALLING to MOVEMENTFLAG_FALLING_FAR
- Rename MOVEMENTFLAG_JUMPING to MOVEMENTFLAG_FALLING
Closes #5751
Diffstat (limited to 'src/server/game/Handlers/MovementHandler.cpp')
-rwxr-xr-x | src/server/game/Handlers/MovementHandler.cpp | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/server/game/Handlers/MovementHandler.cpp b/src/server/game/Handlers/MovementHandler.cpp index a93bec6a616..f1217e58b3f 100755 --- a/src/server/game/Handlers/MovementHandler.cpp +++ b/src/server/game/Handlers/MovementHandler.cpp @@ -278,14 +278,6 @@ void WorldSession::HandleMovementOpcodes(WorldPacket & recv_data) return; } - //! If some anti-cheat checks in WorldSession::ReadMovementInfo failed, do not process - //! the change of movement server-sided. - if (movementInfo.Violated) - { - recv_data.rfinish(); - return; - } - /* handle special cases */ if (movementInfo.flags & MOVEMENTFLAG_ONTRANSPORT) { @@ -495,12 +487,6 @@ void WorldSession::HandleMoveNotActiveMover(WorldPacket &recv_data) MovementInfo mi; ReadMovementInfo(recv_data, &mi); - if (mi.Violated) - { - recv_data.rfinish(); - return; - } - mi.guid = old_mover_guid; _player->m_movementInfo = mi; @@ -529,12 +515,6 @@ void WorldSession::HandleMoveKnockBackAck(WorldPacket & recv_data) MovementInfo movementInfo; ReadMovementInfo(recv_data, &movementInfo); - if (movementInfo.Violated) - { - recv_data.rfinish(); - return; - } - _player->m_movementInfo = movementInfo; WorldPacket data(MSG_MOVE_KNOCK_BACK, 66); |