Core/Vehicles: Remove a visibility hack on Vehicle::AddPassenger. May fix client crash/freeze issues.

This commit is contained in:
Machiavelli
2011-02-23 20:43:12 +01:00
parent 102c089ab8
commit 2c7ca195d1

View File

@@ -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);