diff options
author | Rudy Bousset <rbousset@z2r4p3.le-101.fr> | 2020-02-05 20:34:42 +0100 |
---|---|---|
committer | Rudy Bousset <rbousset@z2r4p3.le-101.fr> | 2020-02-05 20:34:42 +0100 |
commit | eb11f281970bfe7bbf17786089709d4e0016b8c7 (patch) | |
tree | 61e4dcb1a75c4272a71bcf0e2c49cb0968e176d6 /src/ft_select_get.c | |
parent | Changed return values (diff) | |
download | 42-cub3d-eb11f281970bfe7bbf17786089709d4e0016b8c7.tar.gz 42-cub3d-eb11f281970bfe7bbf17786089709d4e0016b8c7.tar.bz2 42-cub3d-eb11f281970bfe7bbf17786089709d4e0016b8c7.tar.xz 42-cub3d-eb11f281970bfe7bbf17786089709d4e0016b8c7.tar.zst 42-cub3d-eb11f281970bfe7bbf17786089709d4e0016b8c7.zip |
Norme
Diffstat (limited to 'src/ft_select_get.c')
-rw-r--r-- | src/ft_select_get.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/ft_select_get.c b/src/ft_select_get.c index 53a37d4..76f424d 100644 --- a/src/ft_select_get.c +++ b/src/ft_select_get.c @@ -17,7 +17,7 @@ #include <stdint.h> static int8_t -ft_check_exists(const int8_t ret, t_cub *clist) + ft_check_exists(const int8_t ret, t_cub *clist) { if (ret == 12) return (12); @@ -33,12 +33,12 @@ ft_check_exists(const int8_t ret, t_cub *clist) return (-1); else if (ret == 5 && (clist->sprite_path[0])) return (-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))) */ - /* return (-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))) + return (-1); return (ret); } |