diff options
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 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)); |