diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-03 16:14:26 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-03 16:14:26 +0100 |
commit | ce43b1cd1caa539af687425f58a6999a20807878 (patch) | |
tree | 34631aef16b6eb1d5d650fe9e900916f9810215d /src/ft_select_get.c | |
parent | Makefile update (diff) | |
download | 42-cub3d-ce43b1cd1caa539af687425f58a6999a20807878.tar.gz 42-cub3d-ce43b1cd1caa539af687425f58a6999a20807878.tar.bz2 42-cub3d-ce43b1cd1caa539af687425f58a6999a20807878.tar.xz 42-cub3d-ce43b1cd1caa539af687425f58a6999a20807878.tar.zst 42-cub3d-ce43b1cd1caa539af687425f58a6999a20807878.zip |
Going full stack is bav
Diffstat (limited to 'src/ft_select_get.c')
-rw-r--r-- | src/ft_select_get.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/ft_select_get.c b/src/ft_select_get.c index 3355870..124c208 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)); |