--- src/clone/mpq.c.old 2006-05-27 12:13:54.000000000 +0200 +++ src/clone/mpq.c 2006-05-27 12:16:51.000000000 +0200 @@ -106,9 +106,9 @@ extern const unsigned char dcl_table[]; local UInt8 *explode_buffer; -extern const UInt8 wav_table[2512]; -extern const UInt32 small_tbl1[90]; -extern const UInt32 small_tbl2[32]; +local const UInt8 wav_table[2512]; +local const UInt32 small_tbl1[90]; +local const UInt32 small_tbl2[32]; local UInt32 offset_mpq; /// Offset to MPQ file data local UInt32 offset_htbl; /// Offset to hash_table of MPQ --- src/clone/scm.c.old 2006-05-27 12:17:38.000000000 +0200 +++ src/clone/scm.c 2006-05-27 12:37:29.000000000 +0200 @@ -165,7 +165,9 @@ */ local inline int ChkReadByte(void) { - return *((unsigned char*)chk_ptr)++; + int r = *(unsigned char *)chk_ptr; + chk_ptr = ((unsigned char *)chk_ptr) + 1; + return r; } /** --- src/unit/unittype.c.old 2006-05-27 12:28:11.000000000 +0200 +++ src/unit/unittype.c 2006-05-27 12:46:31.000000000 +0200 @@ -266,7 +266,7 @@ } /// Macro to fetch an 8bit value, to have some looking 8/16/32 bit funcs. -#define Fetch8(p) (*((unsigned char*)(p))++) +#define Fetch8(p) (*((unsigned char*)(p))); p = ((unsigned char*)(p)) + 1 /** ** Parse UDTA area from puds. --- src/video/linedraw.c.old 2006-05-27 12:46:57.000000000 +0200 +++ src/video/linedraw.c 2006-05-27 12:47:56.000000000 +0200 @@ -1432,7 +1432,8 @@ f=((unsigned long)Pixels16[color]<<16)|Pixels16[color]; while( p