mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 17:54:48 +01:00
Core/Vehicles: Remove a visibility hack on Vehicle::AddPassenger. May fix client crash/freeze issues.
This commit is contained in:
@@ -369,6 +369,7 @@ bool Vehicle::AddPassenger(Unit *unit, int8 seatId)
|
||||
me->SendMessageToSet(&data, false);
|
||||
}
|
||||
|
||||
// In some cases we send SMSG_SPLINE_MOVE_ROOT here (for creatures)
|
||||
unit->SendMonsterMoveTransport(me);
|
||||
|
||||
if (me->GetTypeId() == TYPEID_UNIT)
|
||||
@@ -380,8 +381,6 @@ bool Vehicle::AddPassenger(Unit *unit, int8 seatId)
|
||||
RelocatePassengers(me->GetPositionX(), me->GetPositionY(), me->GetPositionZ(), me->GetOrientation());
|
||||
}
|
||||
}
|
||||
unit->DestroyForNearbyPlayers();
|
||||
unit->UpdateObjectVisibility(false);
|
||||
|
||||
if (GetBase()->GetTypeId() == TYPEID_UNIT)
|
||||
sScriptMgr->OnAddPassenger(this, unit, seatId);
|
||||
|
||||
Reference in New Issue
Block a user