mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-06 17:08:23 +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
This commit is contained in:
@@ -41,12 +41,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