diff options
author | QAston <none@none> | 2009-06-06 08:32:14 +0200 |
---|---|---|
committer | QAston <none@none> | 2009-06-06 08:32:14 +0200 |
commit | c99b74151727a081423c60d3f42f1bd6caf4cc7e (patch) | |
tree | 61d45f78cdd770e10a81c32a7f938e725b72d78d /src/game/Object.cpp | |
parent | 8bc46785de9950218f791f9eb6efc598d1a97d29 (diff) | |
parent | 39548d6822ce2a8cea49e4467f8329335aa0d85d (diff) |
*Merge.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Object.cpp')
-rw-r--r-- | src/game/Object.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/game/Object.cpp b/src/game/Object.cpp index 9d5f7eb8f57..f94ee52efdb 100644 --- a/src/game/Object.cpp +++ b/src/game/Object.cpp @@ -126,13 +126,12 @@ void Object::_Create( uint32 guidlow, uint32 entry, HighGuid guidhigh ) m_PackGUID.appendPackGUID(GetGUID()); } -// This function is never used void Object::BuildMovementUpdateBlock(UpdateData * data, uint32 flags ) const { - ByteBuffer buf(500); + ByteBuffer buf(50); buf << uint8( UPDATETYPE_MOVEMENT ); - buf << (uint8)0xFF << GetGUID(); + buf.append(GetPackGUID()); _BuildMovementUpdate(&buf, flags); @@ -189,9 +188,9 @@ void Object::BuildCreateUpdateBlockForPlayer(UpdateData *data, Player *target) c //sLog.outDebug("BuildCreateUpdate: update-type: %u, object-type: %u got flags: %X, flags2: %X", updatetype, m_objectTypeId, flags, flags2); - ByteBuffer buf(500); + ByteBuffer buf(50); buf << (uint8)updatetype; - buf << (uint8)0xFF << GetGUID(); + buf.append(GetPackGUID()); buf << (uint8)m_objectTypeId; _BuildMovementUpdate(&buf, flags); @@ -225,10 +224,10 @@ void Object::SendUpdateToPlayer(Player* player) void Object::BuildValuesUpdateBlockForPlayer(UpdateData *data, Player *target) const { - ByteBuffer buf(500); + ByteBuffer buf(50); buf << (uint8) UPDATETYPE_VALUES; - buf << (uint8)0xFF << GetGUID(); + buf.append(GetPackGUID()); UpdateMask updateMask; updateMask.SetCount( m_valuesCount ); |