diff options
author | Rudy Bousset <rbousset@z2r4p3.le-101.fr> | 2020-03-09 20:28:38 +0100 |
---|---|---|
committer | Rudy Bousset <rbousset@z2r4p3.le-101.fr> | 2020-03-09 20:28:38 +0100 |
commit | 90c93c385af0fbe3c279b805dc64b84910075231 (patch) | |
tree | b0d466a85fc668dd4ca6639d40cfd775611ccbb8 | |
parent | Norme is pretty bav (diff) | |
download | 42-cub3d-90c93c385af0fbe3c279b805dc64b84910075231.tar.gz 42-cub3d-90c93c385af0fbe3c279b805dc64b84910075231.tar.bz2 42-cub3d-90c93c385af0fbe3c279b805dc64b84910075231.tar.xz 42-cub3d-90c93c385af0fbe3c279b805dc64b84910075231.tar.zst 42-cub3d-90c93c385af0fbe3c279b805dc64b84910075231.zip |
in progress
-rw-r--r-- | inc/cub3d_structs.h | 3 | ||||
-rw-r--r-- | src/ft_init_funptr.c | 3 | ||||
-rw-r--r-- | src/ft_init_map.c | 1 | ||||
-rw-r--r-- | src/ft_select_get.c | 2 |
4 files changed, 6 insertions, 3 deletions
diff --git a/inc/cub3d_structs.h b/inc/cub3d_structs.h index d650110..845ae31 100644 --- a/inc/cub3d_structs.h +++ b/inc/cub3d_structs.h @@ -186,6 +186,7 @@ typedef struct s_map uint8_t ismusic; uint8_t isftex; uint8_t isctex; + uint8_t isskybox; uint8_t darklvl; uint8_t scale; uint32_t nlx; @@ -208,7 +209,7 @@ typedef struct s_cub pid_t mpid; int (*key_ptr[6])(struct s_cub*); int8_t (*get_ptr[12])(char**, struct s_cub*); - char ref[13][3]; + char ref[14][3]; struct s_win wlist; struct s_player plist; struct s_map mlist; diff --git a/src/ft_init_funptr.c b/src/ft_init_funptr.c index f95e020..6d668dc 100644 --- a/src/ft_init_funptr.c +++ b/src/ft_init_funptr.c @@ -28,7 +28,8 @@ void ft_sprintf(clist->ref[9], "LT"); ft_sprintf(clist->ref[10], "MU"); ft_sprintf(clist->ref[11], "SH"); - ft_bzero(clist->ref[12], 3); + ft_sprintf(clist->ref[12], "SB"); + ft_bzero(clist->ref[13], 3); } void diff --git a/src/ft_init_map.c b/src/ft_init_map.c index 68a3b6d..f8b91ec 100644 --- a/src/ft_init_map.c +++ b/src/ft_init_map.c @@ -58,6 +58,7 @@ int8_t mlist->isctex = 0; mlist->isnlvl = 0; mlist->ismusic = 0; + mlist->isskybox = 0; mlist->darklvl = 0; mlist->scale = 0; mlist->nlx = 0; diff --git a/src/ft_select_get.c b/src/ft_select_get.c index c246d25..fe6bb3e 100644 --- a/src/ft_select_get.c +++ b/src/ft_select_get.c @@ -66,7 +66,7 @@ static int8_t ret = 0; while (ft_strncmp(words[0], clist->ref[ret], 3) && clist->ref[ret][0]) ret++; - if (ret == 12) + if (ret == 13) ret = FT_PARSE_END_RET; ret = ft_check_exists(ret, clist); ret = ft_check_exists_two(ret, clist); |