aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_select_get.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-02-29 00:29:17 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-02-29 00:29:17 +0100
commit4fccd597e3c5c97144e4324c1371db9f7f039967 (patch)
tree25cb40e9a022ca66fa038864b771e6b0fb15fc05 /src/ft_select_get.c
parentAll works but one thing is not ok (diff)
download42-cub3d-4fccd597e3c5c97144e4324c1371db9f7f039967.tar.gz
42-cub3d-4fccd597e3c5c97144e4324c1371db9f7f039967.tar.bz2
42-cub3d-4fccd597e3c5c97144e4324c1371db9f7f039967.tar.xz
42-cub3d-4fccd597e3c5c97144e4324c1371db9f7f039967.tar.zst
42-cub3d-4fccd597e3c5c97144e4324c1371db9f7f039967.zip
Works fine, preparing small map
Diffstat (limited to 'src/ft_select_get.c')
-rw-r--r--src/ft_select_get.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ft_select_get.c b/src/ft_select_get.c
index 4ec1a45..c6251c2 100644
--- a/src/ft_select_get.c
+++ b/src/ft_select_get.c
@@ -20,7 +20,8 @@ static int8_t
{
if (ret == 12)
return (12);
- if (ret == 0 && (clist->wlist->x_size != 0 || clist->wlist->y_size != 0))
+ if (ret == 0 && clist->currlvl == 0 &&
+ (clist->wlist->x_size != 0 || clist->wlist->y_size != 0))
return (-1);
else if (ret == 1 && (clist->mlist->no_tex_path[0]))
return (-1);