diff options
Diffstat (limited to 'src/ft_select_get.c')
-rw-r--r-- | src/ft_select_get.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/ft_select_get.c b/src/ft_select_get.c index eb68711..6c1900d 100644 --- a/src/ft_select_get.c +++ b/src/ft_select_get.c @@ -17,15 +17,17 @@ 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); */ + if (!ft_strncmp(words[0], "F", 1)) + return (6); + if (!ft_strncmp(words[0], "C", 1)) + return (7); return (12); } uint8_t ft_select_get(char **words, t_cub *clist) { - int (*fun_ptr[7])(char**, t_cub*); + int (*fun_ptr[8])(char**, t_cub*); uint8_t id; fun_ptr[0] = ft_get_res; @@ -34,7 +36,8 @@ 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_f_color; */ + fun_ptr[6] = ft_get_f_color; + fun_ptr[7] = ft_get_c_color; if ((id = ft_get_id(words)) == 12) { ft_free_words(words); |