diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ft_get_darkness.c | 19 | ||||
-rw-r--r-- | src/ft_init_funptr.c | 1 | ||||
-rw-r--r-- | src/ft_select_get.c | 5 |
3 files changed, 23 insertions, 2 deletions
diff --git a/src/ft_get_darkness.c b/src/ft_get_darkness.c new file mode 100644 index 0000000..e9c3966 --- /dev/null +++ b/src/ft_get_darkness.c @@ -0,0 +1,19 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* ft_get_darkness.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: rbousset <marvin@42.fr> +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2020/02/14 17:28:53 by rbousset #+# #+# */ +/* Updated: 2020/02/14 17:28:53 by rbousset ### ########lyon.fr */ +/* */ +/* ************************************************************************** */ + +#include <cub3d.h> + +int8_t + ft_get_darkness(char **words, t_cub *clist) +{ + return (0); +} diff --git a/src/ft_init_funptr.c b/src/ft_init_funptr.c index 1988cb0..75b3cee 100644 --- a/src/ft_init_funptr.c +++ b/src/ft_init_funptr.c @@ -32,4 +32,5 @@ void clist->get_ptr[8] = ft_get_path_nl; clist->get_ptr[9] = ft_get_tex_nl; clist->get_ptr[10] = ft_get_music; + clist->get_ptr[11] = ft_get_darkness; } diff --git a/src/ft_select_get.c b/src/ft_select_get.c index f4673c0..64ba14b 100644 --- a/src/ft_select_get.c +++ b/src/ft_select_get.c @@ -60,7 +60,7 @@ static int8_t ft_get_id(char **words, t_cub *clist) { int8_t ret; - char ref[12][3]; + char ref[13][3]; ft_sprintf(ref[0], "R"); ft_sprintf(ref[1], "NO"); @@ -73,7 +73,8 @@ static int8_t ft_sprintf(ref[8], "L"); ft_sprintf(ref[9], "LT"); ft_sprintf(ref[10], "MU"); - ft_bzero(ref[11], 3); + ft_sprintf(ref[11], "SH"); + ft_bzero(ref[12], 3); if (words[0][0] == ' ' || words[0][0] == '1') return (FT_PARSE_END_RET); ret = 0; |