Core/Movement: fixed packet structure for SMSG_MOVE_SET_CAN_TRANSITION_BETWEEN_SWIM_AND_FLY and SMSG_MOVE_UNSET_CAN_TRANSITION_BETWEEN_SWIM_AND_FLY
* enabled CMSG_MOVE_SET_CAN_TRANSITION_BETWEEN_SWIM_AND_FLY_ACK
This commit is contained in:
1 parent
7dacfff2ef
commit
9a0fe48e70
5 files changed
+63
-16
No files matched your search
@@ -27971,16 +27971,10 @@ VoidStorageItem* Player::GetVoidStorageItem(uint64 id, uint8& slot) const
|
||||
|
||||
void Player::SendMovementSetCanTransitionBetweenSwimAndFly(bool apply)
|
||||
{
|
||||
static Opcodes const swimToFlyTransOpcodeTable[2] =
|
||||
{
|
||||
SMSG_MOVE_UNSET_CAN_TRANSITION_BETWEEN_SWIM_AND_FLY,
|
||||
SMSG_MOVE_SET_CAN_TRANSITION_BETWEEN_SWIM_AND_FLY
|
||||
};
|
||||
|
||||
WorldPacket data(swimToFlyTransOpcodeTable[apply], 15);
|
||||
data.appendPackGUID(GetGUID());
|
||||
data << uint32(m_movementCounter++);
|
||||
SendDirectMessage(&data);
|
||||
if (apply)
|
||||
Movement::PacketSender(this, NULL_OPCODE, SMSG_MOVE_SET_CAN_TRANSITION_BETWEEN_SWIM_AND_FLY).Send();
|
||||
else
|
||||
Movement::PacketSender(this, NULL_OPCODE, SMSG_MOVE_UNSET_CAN_TRANSITION_BETWEEN_SWIM_AND_FLY).Send();
|
||||
}
|
||||
|
||||
void Player::SendMovementSetCollisionHeight(float height)
|
||||
|
||||
Reference in new issue
Block a user