town_cmd.c
changeset 817 238bbdaa228b
parent 679 04ca2cd69420
child 830 36c1366367e4
equal deleted inserted replaced
816:cee64d137cc8 817:238bbdaa228b
    61 	uint32 image;
    61 	uint32 image;
    62 
    62 
    63 	/* Retrieve pointer to the draw town tile struct */
    63 	/* Retrieve pointer to the draw town tile struct */
    64 	{
    64 	{
    65 		/* this "randomizes" on the (up to) 4 variants of a building */
    65 		/* this "randomizes" on the (up to) 4 variants of a building */
    66 		byte gfx   = _map2[ti->tile];
    66 		byte gfx   = (byte)_map2[ti->tile];
    67 		byte stage = _map3_lo[ti->tile] >> 6;
    67 		byte stage = _map3_lo[ti->tile] >> 6;
    68 		uint variant;
    68 		uint variant;
    69 		variant  = ti->x >> 4;
    69 		variant  = ti->x >> 4;
    70 		variant ^= ti->x >> 6;
    70 		variant ^= ti->x >> 6;
    71 		variant ^= ti->y >> 4;
    71 		variant ^= ti->y >> 4;