[8113] Fixed setting mover for Posses/Charm auras and Vehicle enter/exit.

Signed-off-by: ApoC <apoc@nymfe.net>
This commit is contained in:
m4cm4n 2009-07-04 12:50:32 +02:00 committed by ApoC
parent d17a49f6dc
commit 7c5f254012
5 changed files with 7 additions and 4 deletions

View file

@ -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());