map.c
changeset 26 95fccfcbd04c
parent 10 9148590f009d
equal deleted inserted replaced
25:b37843173279 26:95fccfcbd04c
    12 	int n)
    12 	int n)
    13 {
    13 {
    14 	int i;
    14 	int i;
    15 	char tmp[MAX_Y][MAX_X]; /* !!!argh */
    15 	char tmp[MAX_Y][MAX_X]; /* !!!argh */
    16 
    16 
    17 	memset(tmp, 0, sizeof(tmp));
    17 	for (i=0; i < n; i++)
    18 
    18 	{
       
    19 		tmp[b2[i].y][b2[i].x] = 0;
       
    20 	}
    19 	for (i=0; i < n; i++)
    21 	for (i=0; i < n; i++)
    20 	{
    22 	{
    21 		tmp[b1[i].y][b1[i].x] = 1;
    23 		tmp[b1[i].y][b1[i].x] = 1;
    22 	}
    24 	}
    23 	for (i=0; i < n; i++)
    25 	for (i=0; i < n; i++)