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:
1 parent
fae3015044
commit
cbd69f12bd
4 files changed
+13
-12
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user