Core/Transport: do not relocate players on board of vehicles when near teleporting. Vehicle should take care of that
(cherry picked from commit 7470bf6b97eed6732fd1e076bb290f4f97e402a3)
This commit is contained in:
@@ -628,6 +628,11 @@ bool Transport::TeleportTransport(uint32 newMapid, float x, float y, float z, fl
|
||||
{
|
||||
if ((*itr)->GetTypeId() == TYPEID_PLAYER)
|
||||
{
|
||||
// will be relocated in UpdatePosition of the vehicle
|
||||
if (Unit* veh = (*itr)->ToUnit()->GetVehicleBase())
|
||||
if (veh->GetTransport() == this)
|
||||
continue;
|
||||
|
||||
float destX, destY, destZ, destO;
|
||||
(*itr)->m_movementInfo.transport.pos.GetPosition(destX, destY, destZ, destO);
|
||||
TransportBase::CalculatePassengerPosition(destX, destY, destZ, &destO, x, y, z, o);
|
||||
|
||||
Reference in New Issue
Block a user