[12221] Implement interface for Vehicles

Signed-off-by: Schmoozerd <schmoozerd@cmangos>
This commit is contained in:
kid10 2012-09-14 01:31:39 +02:00 committed by Antz
parent 164c2e137b
commit 1aaf756c7e
7 changed files with 280 additions and 18 deletions

View file

@ -462,7 +462,7 @@ void Object::BuildMovementUpdate(ByteBuffer * data, uint16 updateFlags) const
if (updateFlags & UPDATEFLAG_VEHICLE)
{
*data << float(NormalizeOrientation(((WorldObject*)this)->GetOrientation()));
*data << uint32(((Unit*)this)->GetVehicleInfo()->GetEntry()->m_ID); // vehicle id
*data << uint32(((Unit*)this)->GetVehicleInfo()->GetVehicleEntry()->m_ID); // vehicle id
}
// used only with GO's, placeholder