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:
@@ -426,11 +426,11 @@ void Unit::SendMonsterMoveTransport(Unit *vehicleOwner)
|
|||||||
data << GetPositionX() - vehicleOwner->GetPositionX();
|
data << GetPositionX() - vehicleOwner->GetPositionX();
|
||||||
data << GetPositionY() - vehicleOwner->GetPositionY();
|
data << GetPositionY() - vehicleOwner->GetPositionY();
|
||||||
data << GetPositionZ() - vehicleOwner->GetPositionZ();
|
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 << uint8(SPLINETYPE_FACING_ANGLE);
|
||||||
data << GetTransOffsetO(); // facing angle?
|
data << GetOrientation(); // facing angle?
|
||||||
data << uint32(SPLINEFLAG_TRANSPORT);
|
data << uint32(SPLINEFLAG_TRANSPORT);
|
||||||
data << uint32(0); // move time
|
data << uint32(GetTransTime()); // move time
|
||||||
data << uint32(1); // amount of waypoints
|
data << uint32(1); // amount of waypoints
|
||||||
data << GetTransOffsetX();
|
data << GetTransOffsetX();
|
||||||
data << GetTransOffsetY();
|
data << GetTransOffsetY();
|
||||||
|
|||||||
Reference in New Issue
Block a user