Core/Movement: Refactored removing transport part of movement info structure into a separate method. Also corrects seat set after exiting vehicle

This commit is contained in:
Shauren
2013-06-04 14:52:38 +02:00
parent fae3015044
commit cbd69f12bd
4 changed files with 13 additions and 12 deletions

View File

@@ -348,9 +348,7 @@ void WorldSession::HandleMovementOpcodes(WorldPacket& recvData)
{
plrMover->m_transport->RemovePassenger(plrMover);
plrMover->m_transport = NULL;
movementInfo.t_pos.Relocate(0.0f, 0.0f, 0.0f, 0.0f);
movementInfo.t_time = 0;
movementInfo.t_seat = -1;
movementInfo.ClearTransport();
}
// fall damage generation (ignore in flight case that can be triggered also at lags in moment teleportation to another map).