diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-09 02:46:24 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-09 02:46:24 +0100 |
commit | 85fd7ecfbcc4abaf55e0d302471571b6a8f54f16 (patch) | |
tree | 5d45657b800966c91b16eeaafd61c9a22bc6305f /src/ft_get_colors.c | |
parent | Reparse, may not compile (diff) | |
download | 42-cub3d-85fd7ecfbcc4abaf55e0d302471571b6a8f54f16.tar.gz 42-cub3d-85fd7ecfbcc4abaf55e0d302471571b6a8f54f16.tar.bz2 42-cub3d-85fd7ecfbcc4abaf55e0d302471571b6a8f54f16.tar.xz 42-cub3d-85fd7ecfbcc4abaf55e0d302471571b6a8f54f16.tar.zst 42-cub3d-85fd7ecfbcc4abaf55e0d302471571b6a8f54f16.zip |
the smartest that every lived
Diffstat (limited to 'src/ft_get_colors.c')
-rw-r--r-- | src/ft_get_colors.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ft_get_colors.c b/src/ft_get_colors.c index 47b8265..0f79a7b 100644 --- a/src/ft_get_colors.c +++ b/src/ft_get_colors.c @@ -75,7 +75,7 @@ int8_t return (-1); } if (!ft_check_ext(words[1], ".xpm")) - return (ft_get_f_tex(words, clist)) + return (ft_get_f_tex(words, clist)); if (!(num = ft_split(words[1], ','))) { ft_sprintf(clist->errmsg, FT_ERR_ALLOCATE); @@ -104,6 +104,8 @@ int8_t ft_sprintf(clist->errmsg, FT_ERR_ARGS); return (-1); } + if (!ft_check_ext(words[1], ".xpm")) + return (ft_get_c_tex(words, clist)); if (!(num = ft_split(words[1], ','))) { ft_sprintf(clist->errmsg, FT_ERR_ALLOCATE); |