aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_select_get.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-03 14:47:33 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-03 14:47:33 +0100
commit8866ef5699150d0549096efa94fc311ff7a48dc7 (patch)
tree4a03267f7e7f9b399a9ad0536b50ba6a90407e47 /src/ft_select_get.c
parentMusic is pretty bav (diff)
download42-cub3d-8866ef5699150d0549096efa94fc311ff7a48dc7.tar.gz
42-cub3d-8866ef5699150d0549096efa94fc311ff7a48dc7.tar.bz2
42-cub3d-8866ef5699150d0549096efa94fc311ff7a48dc7.tar.xz
42-cub3d-8866ef5699150d0549096efa94fc311ff7a48dc7.tar.zst
42-cub3d-8866ef5699150d0549096efa94fc311ff7a48dc7.zip
Changing stuff
Diffstat (limited to 'src/ft_select_get.c')
-rw-r--r--src/ft_select_get.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/ft_select_get.c b/src/ft_select_get.c
index ed569ff..3355870 100644
--- a/src/ft_select_get.c
+++ b/src/ft_select_get.c
@@ -20,24 +20,24 @@ static int8_t
{
if (ret == 12)
return (12);
- if (ret == 0 && clist->currlvl == 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]))
+ else if (ret == 1 && (clist.mlist.no_tex_path[0]))
return (-1);
- else if (ret == 2 && (clist->mlist->so_tex_path[0]))
+ else if (ret == 2 && (clist.mlist.so_tex_path[0]))
return (-1);
- else if (ret == 3 && (clist->mlist->ea_tex_path[0]))
+ else if (ret == 3 && (clist.mlist.ea_tex_path[0]))
return (-1);
- else if (ret == 4 && (clist->mlist->we_tex_path[0]))
+ else if (ret == 4 && (clist.mlist.we_tex_path[0]))
return (-1);
- else if (ret == 5 && (clist->mlist->sprite_path[0]))
+ else if (ret == 5 && (clist.mlist.sprite_path[0]))
return (-1);
- else if (ret == 6 && ((clist->f_rgb.r != -1) || (clist->f_rgb.g != -1)
- || (clist->f_rgb.b != -1)))
+ else if (ret == 6 && ((clist.f_rgb.r != -1) || (clist.f_rgb.g != -1)
+ || (clist.f_rgb.b != -1)))
return (-1);
- else if (ret == 7 && ((clist->c_rgb.r != -1) || (clist->c_rgb.g != -1)
- || (clist->c_rgb.b != -1)))
+ else if (ret == 7 && ((clist.c_rgb.r != -1) || (clist.c_rgb.g != -1)
+ || (clist.c_rgb.b != -1)))
return (-1);
return (ret);
}
@@ -47,11 +47,11 @@ static int8_t
{
if (ret == 12)
return (12);
- if (ret == 8 && (clist->mlist->nlevel_path[0]))
+ if (ret == 8 && (clist.mlist.nlevel_path[0]))
return (-1);
- if (ret == 9 && (clist->mlist->nl_tex_path[0]))
+ if (ret == 9 && (clist.mlist.nl_tex_path[0]))
return (-1);
- if (ret == 10 && (clist->mlist->music_path[0]))
+ if (ret == 10 && (clist.mlist.music_path[0]))
return (-1);
return (ret);
}
@@ -94,7 +94,7 @@ int8_t
ft_free_words(words);
return (12);
}
- if (id < 0 || clist->get_ptr[id](words, clist) < 0)
+ if (id < 0 || clist.get_ptr[id](words, clist) < 0)
{
ft_free_words(words);
return ((id < 0) ? (-2) : (-1));