diff options
-rw-r--r-- | inc/cub3d.h | 1 | ||||
-rw-r--r-- | src/ft_init_lists.c | 1 | ||||
-rw-r--r-- | src/ft_print_list.c | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/inc/cub3d.h b/inc/cub3d.h index 6b35fab..676253a 100644 --- a/inc/cub3d.h +++ b/inc/cub3d.h @@ -39,6 +39,7 @@ typedef struct s_cub int c_color; char **map; size_t map_w; + size_t line_chk; struct s_win *wlist; } t_cub; diff --git a/src/ft_init_lists.c b/src/ft_init_lists.c index 9e66e2e..5c14731 100644 --- a/src/ft_init_lists.c +++ b/src/ft_init_lists.c @@ -38,5 +38,6 @@ t_cub return (NULL); clist->map[1] = 0; clist->map_w = 0; + clist->line_chk = 0; return (clist); } diff --git a/src/ft_print_list.c b/src/ft_print_list.c index e48b2a2..4f67a88 100644 --- a/src/ft_print_list.c +++ b/src/ft_print_list.c @@ -22,4 +22,5 @@ ft_print_list(t_cub *clist) ft_printf("%2zu [%s]\n", i + 1, clist->map[i]); i++; } + ft_printf("Map width [%d]\n", clist->map_w); } |