Core/Movement: Use MonsterMoveStop spline type to stop movement instead of sending movement to current position

This commit is contained in:
Shauren committed 2012-08-11 20:18:00 +02:00
1 parent c3e1443a13
commit e7590abce7
11 files changed
+141 -92

No files matched your search

@@ -88,6 +88,14 @@ namespace Movement
}
}
void PacketBuilder::WriteStopMovement(Vector3 const& pos, uint32 splineId, ByteBuffer& data)
{
data << uint8(0); // sets/unsets MOVEMENTFLAG2_UNK7 (0x40)
data << pos;
data << splineId;
data << uint8(MonsterMoveStop);
}
void WriteLinearPath(const Spline<int32>& spline, ByteBuffer& data)
{
uint32 last_idx = spline.getPointCount() - 3;