diff options
Diffstat (limited to '')
-rw-r--r-- | src/ft_select_get.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/ft_select_get.c b/src/ft_select_get.c index f748721..745b26d 100644 --- a/src/ft_select_get.c +++ b/src/ft_select_get.c @@ -31,7 +31,7 @@ static int8_t return (-1); 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][0])) return (-1); else if (ret == 6 && ((clist->f_rgb.r != -1) || (clist->f_rgb.g != -1) || (clist->f_rgb.b != -1))) @@ -57,6 +57,8 @@ static int8_t return (-1); if (ret == 13 && (clist->mlist.traps_path[0])) return (-1); + if (ret > 13 && ret < 21 && (clist->mlist.sprite_path[ret - 13][0])) + return (-1); return (ret); } @@ -70,10 +72,12 @@ static int8_t ret = 0; while (ft_strncmp(words[0], clist->ref[ret], 3) && clist->ref[ret][0]) ret++; - if (ret == 14) + if (ret == 21) ret = FT_PARSE_END_RET; ret = ft_check_exists(ret, clist); ret = ft_check_exists_two(ret, clist); + if (ret > 13 && ret < 21) + ret = 5; return (ret); } |