aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_print_list.c
diff options
context:
space:
mode:
authorRudy Bousset <rbousset@z3r8p1.le-101.fr>2020-02-13 19:42:05 +0100
committerRudy Bousset <rbousset@z3r8p1.le-101.fr>2020-02-13 19:42:05 +0100
commite29dd2fa3688e1e96a25af3b651da574af08aa90 (patch)
treecb6486fc91f1b93e61e4dcda25d359095e6aa108 /src/ft_print_list.c
parentBetter code structure (diff)
download42-cub3d-e29dd2fa3688e1e96a25af3b651da574af08aa90.tar.gz
42-cub3d-e29dd2fa3688e1e96a25af3b651da574af08aa90.tar.bz2
42-cub3d-e29dd2fa3688e1e96a25af3b651da574af08aa90.tar.xz
42-cub3d-e29dd2fa3688e1e96a25af3b651da574af08aa90.tar.zst
42-cub3d-e29dd2fa3688e1e96a25af3b651da574af08aa90.zip
Splited structs
Diffstat (limited to 'src/ft_print_list.c')
-rw-r--r--src/ft_print_list.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/ft_print_list.c b/src/ft_print_list.c
index 6c2b702..314a4ec 100644
--- a/src/ft_print_list.c
+++ b/src/ft_print_list.c
@@ -21,21 +21,21 @@ void
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("North ------ [%s]\n", clist->mlist->no_tex_path);
+ ft_printf("South ------ [%s]\n", clist->mlist->so_tex_path);
+ ft_printf("West ------- [%s]\n", clist->mlist->we_tex_path);
+ ft_printf("East ------- [%s]\n", clist->mlist->ea_tex_path);
+ ft_printf("Sprite ----- [%s]\n", clist->mlist->sprite_path);
ft_printf("F color ---- [%d]\n", ft_rgb_to_hex(clist->f_rgb));
ft_printf("C color ---- [%d]\n", ft_rgb_to_hex(clist->c_rgb));
i = 0;
ft_printf("Map\n----\n");
- while (clist->map[i])
+ while (clist->mlist->map[i])
{
- ft_printf("%2zu -- [%s]\n", i + 1, clist->map[i]);
+ ft_printf("%2zu -- [%s]\n", i + 1, clist->mlist->map[i]);
i++;
}
- ft_printf("Map width -- [%zu]\n", clist->map_w);
- ft_printf("2D scale --- [%hhu]\n", clist->scale);
+ ft_printf("Map width -- [%zu]\n", clist->mlist->map_w);
+ ft_printf("2D scale --- [%hhu]\n", clist->mlist->scale);
ft_printf("----------------------\n");
}