Core/Vehicles: Also remove MOVEMENTFLAG_ROOT on ExitVehicle (thanks to Anubisss), and slight refactoring of code.
This commit is contained in:
1 parent
867f6d3513
commit
a6da435b84
2 files changed
+7
-7
No files matched your search
@@ -16535,13 +16535,6 @@ void Unit::ExitVehicle()
|
||||
|
||||
SetControlled(false, UNIT_STAT_ROOT);
|
||||
|
||||
RemoveUnitMovementFlag(MOVEMENTFLAG_ONTRANSPORT | MOVEMENTFLAG_ROOT);
|
||||
m_movementInfo.t_pos.Relocate(0, 0, 0, 0);
|
||||
m_movementInfo.t_time = 0;
|
||||
m_movementInfo.t_seat = 0;
|
||||
|
||||
Relocate(vehicle->GetBase());
|
||||
|
||||
//Send leave vehicle, not correct
|
||||
if (GetTypeId() == TYPEID_PLAYER)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user