1
0

Explicit change record size.

This commit is contained in:
madmaxoft 2014-04-04 13:19:25 +02:00
parent 4b4c3f2a20
commit 87f39e9e28

View File

@ -210,7 +210,7 @@ void cProtocol125::SendBlockChanges(int a_ChunkX, int a_ChunkZ, const sSetBlockV
WriteInt (a_ChunkX);
WriteInt (a_ChunkZ);
WriteShort((short)a_Changes.size());
WriteUInt ((UInt32)(sizeof(int) * a_Changes.size()));
WriteUInt ((UInt32)(4 * a_Changes.size()));
for (sSetBlockVector::const_iterator itr = a_Changes.begin(), end = a_Changes.end(); itr != end; ++itr)
{
UInt32 Coords = ((UInt32)itr->y) | ((UInt32)(itr->z << 8)) | ((UInt32)(itr->x << 12));