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:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user