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:
Ovahlord
2022-07-10 01:19:51 +02:00
parent af4474926f
commit 377799fd3c

View File

@@ -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())