aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_check_missing.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_check_missing.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 '')
-rw-r--r--src/ft_check_missing.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ft_check_missing.c b/src/ft_check_missing.c
index ece2ba6..58ef223 100644
--- a/src/ft_check_missing.c
+++ b/src/ft_check_missing.c
@@ -27,15 +27,15 @@ int
int
ft_check_missing(t_cub *clist)
{
- if (!clist->no_tex_path[0])
+ if (!clist->mlist->no_tex_path[0])
return (ft_missing_error("north side texture", clist));
- else if (!clist->so_tex_path[0])
+ else if (!clist->mlist->so_tex_path[0])
return (ft_missing_error("south side texture", clist));
- else if (!clist->ea_tex_path[0])
+ else if (!clist->mlist->ea_tex_path[0])
return (ft_missing_error("east side texture", clist));
- else if (!clist->we_tex_path[0])
+ else if (!clist->mlist->we_tex_path[0])
return (ft_missing_error("west side texture", clist));
- else if (!clist->sprite_path[0])
+ else if (!clist->mlist->sprite_path[0])
return (ft_missing_error("sprite texture", clist));
else if (clist->wlist->x_size == 0 || clist->wlist->y_size == 0)
return (ft_missing_error("resolution", clist));