From d0cc9645b9f2da4b8ff233baa9cc116eba0cf0a7 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Sun, 10 Jul 2022 14:08:05 -0400 Subject: [PATCH] Core/Transports: remove an obsolete check that prevented vehicles from updating their passenger positions Port From (https://github.com/TrinityCore/TrinityCore/commit/377799fd3cd8d129b1b6afc146d7c40b70160ad9) --- Source/Game/Entities/Transport.cs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/Source/Game/Entities/Transport.cs b/Source/Game/Entities/Transport.cs index 1ef152426..81843d527 100644 --- a/Source/Game/Entities/Transport.cs +++ b/Source/Game/Entities/Transport.cs @@ -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())