log client version; log tk stats; logging fixes

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4395 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
ac_stef
2009-05-17 18:39:18 +00:00
parent f5e7039432
commit 5cc05dbb8a
4 changed files with 54 additions and 20 deletions
+11
View File
@@ -509,6 +509,17 @@ bool cmpf(char *fn, enet_uint32 c)
return r;
}
enet_uint32 adler(unsigned char *data, size_t len)
{
enet_uint32 a = 1, b = 0;
while (len--)
{
a += *data++;
b += a;
}
return b;
}
void endianswap(void *memory, int stride, int length) // little endian as storage format
{
static const int littleendian = 1;