mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 10:26:28 +01:00
Core/Vehicles: players will no longer get stuck in hover movement when manually leaving a vehicle that had seat flag VEHICLE_SEAT_FLAG_DISABLE_GRAVITY
closes #62
This commit is contained in:
@@ -543,7 +543,7 @@ Vehicle* Vehicle::RemovePassenger(Unit* unit)
|
||||
|
||||
// Enable gravity for passenger when he did not have it active before entering the vehicle
|
||||
if (seat->second.SeatInfo->HasFlag(VEHICLE_SEAT_FLAG_DISABLE_GRAVITY) || GetBase()->CanFly())
|
||||
unit->SetDisableGravity(false);
|
||||
unit->SetDisableGravity(false, !unit->HasUnitMovementFlag(MOVEMENTFLAG_DISABLE_GRAVITY));
|
||||
|
||||
// Remove UNIT_FLAG_NOT_SELECTABLE if passenger did not have it before entering vehicle
|
||||
if (seat->second.SeatInfo->HasFlag(VEHICLE_SEAT_FLAG_PASSENGER_NOT_SELECTABLE) && !seat->second.Passenger.IsUnselectable)
|
||||
|
||||
Reference in New Issue
Block a user