diff options
author | Rudy Bousset <rbousset@z2r5p2.le-101.fr> | 2020-01-27 19:20:28 +0100 |
---|---|---|
committer | Rudy Bousset <rbousset@z2r5p2.le-101.fr> | 2020-01-27 19:20:28 +0100 |
commit | 0c2bb0f610c0af0680b46fc4566a207d59781e4d (patch) | |
tree | 986d6dd6a19416593c9b2c043312ffa5d4f0be73 /src/ft_print_list.c | |
parent | in progress (diff) | |
download | 42-cub3d-0c2bb0f610c0af0680b46fc4566a207d59781e4d.tar.gz 42-cub3d-0c2bb0f610c0af0680b46fc4566a207d59781e4d.tar.bz2 42-cub3d-0c2bb0f610c0af0680b46fc4566a207d59781e4d.tar.xz 42-cub3d-0c2bb0f610c0af0680b46fc4566a207d59781e4d.tar.zst 42-cub3d-0c2bb0f610c0af0680b46fc4566a207d59781e4d.zip |
Switched lists entierly
Diffstat (limited to '')
-rw-r--r-- | src/ft_print_list.c | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/src/ft_print_list.c b/src/ft_print_list.c index f038740..e48b2a2 100644 --- a/src/ft_print_list.c +++ b/src/ft_print_list.c @@ -2,23 +2,24 @@ #include <cub3d.h> void -ft_print_list(t_win *wlist) +ft_print_list(t_cub *clist) { size_t i; - ft_printf("x size [%d]\n", wlist->x_size); - ft_printf("y size [%d]\n", wlist->y_size); - ft_printf("North - [%s]\n", wlist->clist->no_tex_path); - ft_printf("South - [%s]\n", wlist->clist->so_tex_path); - ft_printf("West -- [%s]\n", wlist->clist->we_tex_path); - ft_printf("East -- [%s]\n", wlist->clist->ea_tex_path); - ft_printf("Sprite [%s]\n", wlist->clist->sprite_path); - ft_printf("F color [%d]\n", wlist->clist->f_color); - ft_printf("C color [%d]\n", wlist->clist->c_color); + ft_printf("x size [%d]\n", clist->wlist->x_size); + ft_printf("y size [%d]\n", clist->wlist->y_size); + ft_printf("North - [%s]\n", clist->no_tex_path); + ft_printf("South - [%s]\n", clist->so_tex_path); + ft_printf("West -- [%s]\n", clist->we_tex_path); + ft_printf("East -- [%s]\n", clist->ea_tex_path); + ft_printf("Sprite [%s]\n", clist->sprite_path); + ft_printf("F color [%d]\n", clist->f_color); + ft_printf("C color [%d]\n", clist->c_color); i = 0; - while (wlist->clist->map[i]) + ft_printf("Map\n----\n"); + while (clist->map[i]) { - ft_printf("Map Line %zu [%s]\n", i + 1, wlist->clist->map[i]); + ft_printf("%2zu [%s]\n", i + 1, clist->map[i]); i++; } } |