list size remplis correctement
This commit is contained in:
BIN
includes/.fillit.h.swp
Normal file
BIN
includes/.fillit.h.swp
Normal file
Binary file not shown.
BIN
srcs/.add_to_list.c.swp
Normal file
BIN
srcs/.add_to_list.c.swp
Normal file
Binary file not shown.
@@ -6,7 +6,7 @@
|
|||||||
/* By: hulamy <marvin@42.fr> +#+ +:+ +#+ */
|
/* By: hulamy <marvin@42.fr> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2019/04/14 15:20:53 by hulamy #+# #+# */
|
/* Created: 2019/04/14 15:20:53 by hulamy #+# #+# */
|
||||||
/* Updated: 2019/04/14 22:03:19 by hulamy ### ########.fr */
|
/* Updated: 2019/04/14 22:17:04 by hulamy ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
@@ -49,7 +49,9 @@ void reduce_tetraminos(char **square, t_fillist *list)
|
|||||||
y2 = 4;
|
y2 = 4;
|
||||||
find_start_and_end(square, &x1, &x2, &y1, &y2);
|
find_start_and_end(square, &x1, &x2, &y1, &y2);
|
||||||
printf("de [%d,%d] a [%d,%d]\n",x1, y1, x2, y2);
|
printf("de [%d,%d] a [%d,%d]\n",x1, y1, x2, y2);
|
||||||
(void)list;
|
list->size[0] = y2 - y1 + 1;
|
||||||
|
list->size[1] = x2 - x1 + 1;
|
||||||
|
printf("size [%d,%d]\n", list->size[0], list->size[1]);
|
||||||
}
|
}
|
||||||
|
|
||||||
int add_to_list(char **square)
|
int add_to_list(char **square)
|
||||||
|
|||||||
Reference in New Issue
Block a user