Core/Vehicles

* Fixed vehicle orientation on transports
* Fixed exiting vehicles on moving transports
This commit is contained in:
Shauren
2014-01-02 14:20:05 +01:00
parent 82181a8622
commit 9d6904f03d
2 changed files with 11 additions and 3 deletions
+4 -1
View File
@@ -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