mirror of
https://github.com/mangosfour/server.git
synced 2025-12-27 10:37:02 +00:00
[12221] Implement interface for Vehicles
Signed-off-by: Schmoozerd <schmoozerd@cmangos>
This commit is contained in:
parent
164c2e137b
commit
1aaf756c7e
7 changed files with 280 additions and 18 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue