aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_get_colors.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-09 02:11:22 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-09 02:11:31 +0100
commit40108b83398240f50c6045bfb2bf114bded43c72 (patch)
tree61e0e483e31e17724b2dd7e1a70088659e5be1bd /src/ft_get_colors.c
parentBoy (diff)
download42-cub3d-40108b83398240f50c6045bfb2bf114bded43c72.tar.gz
42-cub3d-40108b83398240f50c6045bfb2bf114bded43c72.tar.bz2
42-cub3d-40108b83398240f50c6045bfb2bf114bded43c72.tar.xz
42-cub3d-40108b83398240f50c6045bfb2bf114bded43c72.tar.zst
42-cub3d-40108b83398240f50c6045bfb2bf114bded43c72.zip
Reparse, may not compile
Diffstat (limited to 'src/ft_get_colors.c')
-rw-r--r--src/ft_get_colors.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ft_get_colors.c b/src/ft_get_colors.c
index 69eb8f8..47b8265 100644
--- a/src/ft_get_colors.c
+++ b/src/ft_get_colors.c
@@ -74,6 +74,8 @@ int8_t
ft_sprintf(clist->errmsg, FT_ERR_ARGS);
return (-1);
}
+ if (!ft_check_ext(words[1], ".xpm"))
+ return (ft_get_f_tex(words, clist))
if (!(num = ft_split(words[1], ',')))
{
ft_sprintf(clist->errmsg, FT_ERR_ALLOCATE);