From 178eca9d786caa5249a29de5218638da9bf224c9 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Tue, 28 Jan 2020 16:37:12 +0100 Subject: Good for now, I'll continue later --- src/ft_get_colors.c | 4 ++-- src/ft_get_sprite.c | 1 - src/ft_select_get.c | 4 +++- 3 files changed, 5 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/ft_get_colors.c b/src/ft_get_colors.c index 750ebed..1b67447 100644 --- a/src/ft_get_colors.c +++ b/src/ft_get_colors.c @@ -15,7 +15,7 @@ ft_check_digits(const char *word) return (0); } -static int +int ft_get_f_color(char *line, char **words, t_cub *clist) { char **num; @@ -42,7 +42,7 @@ ft_get_f_color(char *line, char **words, t_cub *clist) return (0); } -static int +int ft_get_c_color(char *line, char **words, t_cub *clist) { char **num; diff --git a/src/ft_get_sprite.c b/src/ft_get_sprite.c index f1fa73f..b412442 100644 --- a/src/ft_get_sprite.c +++ b/src/ft_get_sprite.c @@ -9,6 +9,5 @@ ft_get_sprite(char **words, t_cub *clist) ft_memdel(clist->sprite_path); if (!(clist->sprite_path = ft_strdup(*(words + 1)))) return (-1); - ft_printf("{%s}\n", clist->sprite_path); return (0); } diff --git a/src/ft_select_get.c b/src/ft_select_get.c index d44fa88..eb68711 100644 --- a/src/ft_select_get.c +++ b/src/ft_select_get.c @@ -17,6 +17,8 @@ ft_get_id(char **words) return (4); if (!ft_strncmp(words[0], "S", 1)) return (5); + /* if (!ft_strncmp(words[0], "F", 1)) */ + /* return (6); */ return (12); } @@ -32,7 +34,7 @@ ft_select_get(char **words, t_cub *clist) fun_ptr[3] = ft_get_tex_ea; fun_ptr[4] = ft_get_tex_we; fun_ptr[5] = ft_get_sprite; - fun_ptr[6] = ft_get_colors; + /* fun_ptr[6] = ft_get_f_color; */ if ((id = ft_get_id(words)) == 12) { ft_free_words(words); -- cgit v1.2.3