diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-04 00:17:54 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-04 00:17:54 +0100 |
commit | 46ed1046b3d8e9dfbb9438552582898c3c79a9f5 (patch) | |
tree | fd1d0c451944d55945375cceeda800ac6664cf27 /inc | |
parent | Map update (diff) | |
download | 42-cub3d-46ed1046b3d8e9dfbb9438552582898c3c79a9f5.tar.gz 42-cub3d-46ed1046b3d8e9dfbb9438552582898c3c79a9f5.tar.bz2 42-cub3d-46ed1046b3d8e9dfbb9438552582898c3c79a9f5.tar.xz 42-cub3d-46ed1046b3d8e9dfbb9438552582898c3c79a9f5.tar.zst 42-cub3d-46ed1046b3d8e9dfbb9438552582898c3c79a9f5.zip |
Chelou maps work, now sides check
Diffstat (limited to 'inc')
-rw-r--r-- | inc/cub3d.h | 2 | ||||
-rw-r--r-- | inc/cub3d_structs.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/inc/cub3d.h b/inc/cub3d.h index edc462f..5808560 100644 --- a/inc/cub3d.h +++ b/inc/cub3d.h @@ -92,6 +92,8 @@ int8_t ft_get_c_color(char **words, t_cub *clist); int8_t ft_get_path_nl(char **words, t_cub *clist); int8_t ft_get_tex_nl(char **words, t_cub *clist); int8_t ft_get_music(char **words, t_cub *clist); +size_t ft_get_map_h(char **map); +size_t ft_get_map_w(char **map); int8_t ft_check_map_line(char *line, uint8_t l, t_cub *clist); int8_t ft_check_ext(const char *filep, const char *ext); int8_t ft_check_not_found(const char *path); diff --git a/inc/cub3d_structs.h b/inc/cub3d_structs.h index b19eae6..ae5ee02 100644 --- a/inc/cub3d_structs.h +++ b/inc/cub3d_structs.h @@ -121,6 +121,7 @@ typedef struct s_map int8_t y_step; size_t map_w; size_t map_h; + size_t mapl_len; size_t line_chk; size_t map_start; uint8_t isspawn; |