Core/Units: Send proper orientation in SMSG_MONSTER_MOVE_TRANSPORT

Also get rid of the 100 constant in moveticks segment and use getMSTime() for consistency sake
This commit is contained in:
Machiavelli
2011-01-09 16:22:04 +01:00
parent 1aa294d3e9
commit 01d4080b4d
+3 -3
View File
@@ -426,11 +426,11 @@ void Unit::SendMonsterMoveTransport(Unit *vehicleOwner)
data << GetPositionX() - vehicleOwner->GetPositionX();
data << GetPositionY() - vehicleOwner->GetPositionY();
data << GetPositionZ() - vehicleOwner->GetPositionZ();
data << uint32(100); // should be an increasing constant that indicates movement packet count
data << uint32(getMSTime()); // should be an increasing constant that indicates movement packet count
data << uint8(SPLINETYPE_FACING_ANGLE);
data << GetTransOffsetO(); // facing angle?
data << GetOrientation(); // facing angle?
data << uint32(SPLINEFLAG_TRANSPORT);
data << uint32(0); // move time
data << uint32(GetTransTime()); // move time
data << uint32(1); // amount of waypoints
data << GetTransOffsetX();
data << GetTransOffsetY();