Core/Vehicles
* Fixed vehicle orientation on transports * Fixed exiting vehicles on moving transports
This commit is contained in:
@@ -480,7 +480,10 @@ void Object::BuildMovementUpdate(ByteBuffer* data, uint16 flags) const
|
||||
{
|
||||
/// @todo Allow players to aquire this updateflag.
|
||||
*data << uint32(unit->GetVehicleKit()->GetVehicleInfo()->m_ID);
|
||||
*data << float(unit->GetOrientation());
|
||||
if (unit->HasUnitMovementFlag(MOVEMENTFLAG_ONTRANSPORT))
|
||||
*data << float(unit->GetTransOffsetO());
|
||||
else
|
||||
*data << float(unit->GetOrientation());
|
||||
}
|
||||
|
||||
// 0x200
|
||||
|
||||
Reference in New Issue
Block a user