mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
[12109] Add file to handle vehicle related opcodes
Also fixed a stupid typo from recent commit. Thx to dbauz for pointing Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
This commit is contained in:
parent
56674de682
commit
0c752dbdbd
7 changed files with 56 additions and 21 deletions
|
|
@ -401,24 +401,6 @@ void WorldSession::HandleMoveNotActiveMoverOpcode(WorldPacket& recv_data)
|
|||
_player->m_movementInfo = mi;
|
||||
}
|
||||
|
||||
void WorldSession::HandleDismissControlledVehicle(WorldPacket& recv_data)
|
||||
{
|
||||
DEBUG_LOG("WORLD: Recvd CMSG_DISMISS_CONTROLLED_VEHICLE");
|
||||
recv_data.hexlike();
|
||||
|
||||
ObjectGuid guid;
|
||||
MovementInfo mi;
|
||||
|
||||
recv_data >> guid.ReadAsPacked();
|
||||
recv_data >> mi;
|
||||
|
||||
ObjectGuid vehicleGUID = _player->GetCharmGuid();
|
||||
if (!vehicleGUID) // something wrong here...
|
||||
return;
|
||||
|
||||
_player->m_movementInfo = mi;
|
||||
}
|
||||
|
||||
void WorldSession::HandleMountSpecialAnimOpcode(WorldPacket& /*recvdata*/)
|
||||
{
|
||||
// DEBUG_LOG("WORLD: Recvd CMSG_MOUNTSPECIAL_ANIM");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue