mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
[8113] Fixed setting mover for Posses/Charm auras and Vehicle enter/exit.
Signed-off-by: ApoC <apoc@nymfe.net>
This commit is contained in:
parent
d17a49f6dc
commit
7c5f254012
5 changed files with 7 additions and 4 deletions
|
|
@ -19386,6 +19386,7 @@ void Player::EnterVehicle(Vehicle *vehicle)
|
|||
SetFarSightGUID(vehicle->GetGUID()); // set view
|
||||
|
||||
SetClientControl(vehicle, 1); // redirect controls to vehicle
|
||||
SetMover(vehicle);
|
||||
|
||||
WorldPacket data(SMSG_ON_CANCEL_EXPECTED_RIDE_VEHICLE_AURA, 0);
|
||||
GetSession()->SendPacket(&data);
|
||||
|
|
@ -19437,6 +19438,7 @@ void Player::ExitVehicle(Vehicle *vehicle)
|
|||
SetFarSightGUID(0);
|
||||
|
||||
SetClientControl(vehicle, 0);
|
||||
SetMover(NULL);
|
||||
|
||||
WorldPacket data(MSG_MOVE_TELEPORT_ACK, 30);
|
||||
data.append(GetPackGUID());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue