Core/Vehicles: temp fix visibility issues when creatures enter a vehicle, this also fixes the 'Ride Vehicle' type spells

note: isntance scripts using spell+EnterVehicle() hacks should be updated

--HG--
branch : trunk
This commit is contained in:
Rat
2010-10-31 14:19:14 +01:00
parent 05a292633c
commit b6c8158f88
@@ -353,6 +353,8 @@ 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);