aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_select_get.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-26 16:26:01 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-26 16:26:01 +0100
commitfe1ebcad396caed49253df48ad87ccd9261246bf (patch)
treeacdfe8223fb2ac604c3551b4b5d66a608d12e2a7 /src/ft_select_get.c
parentStack overflow fix (diff)
download42-cub3d-fe1ebcad396caed49253df48ad87ccd9261246bf.tar.gz
42-cub3d-fe1ebcad396caed49253df48ad87ccd9261246bf.tar.bz2
42-cub3d-fe1ebcad396caed49253df48ad87ccd9261246bf.tar.xz
42-cub3d-fe1ebcad396caed49253df48ad87ccd9261246bf.tar.zst
42-cub3d-fe1ebcad396caed49253df48ad87ccd9261246bf.zip
Better parse
Diffstat (limited to 'src/ft_select_get.c')
-rw-r--r--src/ft_select_get.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ft_select_get.c b/src/ft_select_get.c
index 88507a3..a2bd257 100644
--- a/src/ft_select_get.c
+++ b/src/ft_select_get.c
@@ -33,11 +33,11 @@ static int8_t
return (-1);
else if (ret == 5 && (clist->mlist.sprite_path[0][0]))
return (-1);
- if (ret == 6 && ((clist->f_rgb.r != -1) || (clist->f_rgb.g != -1)
- || (clist->f_rgb.b != -1)))
+ if (ret == 6 && (((clist->f_rgb.r != -1) || (clist->f_rgb.g != -1)
+ || (clist->f_rgb.b != -1)) || clist->mlist.fl_tex_path[0]))
return (-1);
- if (ret == 7 && ((clist->c_rgb.r != -1) || (clist->c_rgb.g != -1)
- || (clist->c_rgb.b != -1)))
+ if (ret == 7 && (((clist->c_rgb.r != -1) || (clist->c_rgb.g != -1)
+ || (clist->c_rgb.b != -1)) || clist->mlist.ce_tex_path[0]))
return (-1);
return (ret);
}