Core/Movement: Fix pushback issues and client freeze.

This commit is contained in:
Machiavelli committed 2012-04-08 17:03:44 +02:00
1 parent 1922314858
commit e636531da3
7 files changed
+54 -13

No files matched your search

@@ -25550,3 +25550,27 @@ void Player::SendMovementSetCanTransitionBetweenSwimAndFly(bool apply)
data << uint32(0); //! movement counter
SendDirectMessage(&data);
}
void Player::SendMovementSetHover(bool apply)
{
WorldPacket data(apply ? SMSG_MOVE_SET_HOVER : SMSG_MOVE_UNSET_HOVER, 12);
data.append(GetPackGUID());
data << uint32(0); //! movement counter
SendDirectMessage(&data);
}
void Player::SendMovementSetWaterWalking(bool apply)
{
WorldPacket data(apply ? SMSG_MOVE_WATER_WALK : SMSG_MOVE_LAND_WALK, 12);
data.append(GetPackGUID());
data << uint32(0); //! movement counter
SendDirectMessage(&data);
}
void Player::SendMovementSetFeatherFall(bool apply)
{
WorldPacket data(apply ? SMSG_MOVE_FEATHER_FALL : SMSG_MOVE_NORMAL_FALL, 12);
data.append(GetPackGUID());
data << uint32(0); //! movement counter
SendDirectMessage(&data);
}