mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Core/Transports: remove an obsolete check that prevented vehicles from updating their passenger positions
Vehicles now share the TransportBase class with regular transports so they both update positions the same way
This commit is contained in:
@@ -43,12 +43,6 @@ void TransportBase::UpdatePassengerPosition(Map* map, WorldObject* passenger, fl
|
||||
if (passenger->GetMap() != map)
|
||||
return;
|
||||
|
||||
// if passenger is on vehicle we have to assume the vehicle is also on transport
|
||||
// and its the vehicle that will be updating its passengers
|
||||
if (Unit* unit = passenger->ToUnit())
|
||||
if (unit->GetVehicle())
|
||||
return;
|
||||
|
||||
// Do not use Unit::UpdatePosition here, we don't want to remove auras
|
||||
// as if regular movement occurred
|
||||
switch (passenger->GetTypeId())
|
||||
|
||||
Reference in New Issue
Block a user