diff options
author | megamage <none@none> | 2009-06-02 17:35:00 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-06-02 17:35:00 -0500 |
commit | 47a147721394c696a7eaec75511c891e4e03d402 (patch) | |
tree | d94158bfd31dbcc7875667a9d6c0d957d6cd44a4 /src/game/Object.cpp | |
parent | 8eaa1bf8756ba2e07032f425057d2cc8eac9457b (diff) |
*Revert part of Mangos [7911] because it may causes client crash. Thanks to onkelz28.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Object.cpp')
-rw-r--r-- | src/game/Object.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/game/Object.cpp b/src/game/Object.cpp index f94ee52efdb..9d5f7eb8f57 100644 --- a/src/game/Object.cpp +++ b/src/game/Object.cpp @@ -126,12 +126,13 @@ 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(50); + ByteBuffer buf(500); buf << uint8( UPDATETYPE_MOVEMENT ); - buf.append(GetPackGUID()); + buf << (uint8)0xFF << GetGUID(); _BuildMovementUpdate(&buf, flags); @@ -188,9 +189,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(50); + ByteBuffer buf(500); buf << (uint8)updatetype; - buf.append(GetPackGUID()); + buf << (uint8)0xFF << GetGUID(); buf << (uint8)m_objectTypeId; _BuildMovementUpdate(&buf, flags); @@ -224,10 +225,10 @@ void Object::SendUpdateToPlayer(Player* player) void Object::BuildValuesUpdateBlockForPlayer(UpdateData *data, Player *target) const { - ByteBuffer buf(50); + ByteBuffer buf(500); buf << (uint8) UPDATETYPE_VALUES; - buf.append(GetPackGUID()); + buf << (uint8)0xFF << GetGUID(); UpdateMask updateMask; updateMask.SetCount( m_valuesCount ); |