<URL: http://bugs.freeciv.org/Ticket/Display.html?id=39659 >

 If attribute block consist of several attribute chunks, hash each
chunk separately. This avoids sending all the chunks as changed.
 In theory, at least. Compilation problems have so far prevented me
from actually testing this.

 - ML

diff -Nurd -X.diff_ignore freeciv/common/packets.def freeciv/common/packets.def
--- freeciv/common/packets.def	2007-09-02 05:15:08.000000000 +0300
+++ freeciv/common/packets.def	2007-09-02 17:32:28.000000000 +0300
@@ -716,7 +716,8 @@
 PACKET_PLAYER_ATTRIBUTE_CHUNK=47; pre-send, sc,cs,handle-via-packet
-  UINT32 offset, total_length, chunk_length;
+  UINT32 offset; key
+  UINT32 total_length, chunk_length;
   /* to keep memory management simple don't allocate dynamic memory */
   MEMORY data[ATTRIBUTE_CHUNK_SIZE:chunk_length];
Freeciv-dev mailing list

Reply via email to