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 committed 2013-06-04 14:52:38 +02:00
1 parent fae3015044
commit cbd69f12bd
4 files changed
+13 -12

No files matched your search

+1 -3
View File
@@ -519,9 +519,7 @@ void Vehicle::RemovePassenger(Unit* unit)
if (_me->IsInWorld())
{
unit->RemoveUnitMovementFlag(MOVEMENTFLAG_ONTRANSPORT);
unit->m_movementInfo.t_pos.Relocate(0.0f, 0.0f, 0.0f, 0.0f);
unit->m_movementInfo.t_time = 0;
unit->m_movementInfo.t_seat = 0;
unit->m_movementInfo.ClearTransport();
}
// only for flyable vehicles