Core/Transports: remove an obsolete check that prevented vehicles from updating their passenger positions

Port From (https://github.com/TrinityCore/TrinityCore/commit/377799fd3cd8d129b1b6afc146d7c40b70160ad9)
This commit is contained in:
hondacrx
2022-07-10 14:08:05 -04:00
parent 4fde924aec
commit d0cc9645b9
-7
View File
@@ -49,13 +49,6 @@ namespace Game.Entities
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
Unit unit = passenger.ToUnit();
if (unit != null)
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())