From 46ed1046b3d8e9dfbb9438552582898c3c79a9f5 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Wed, 4 Mar 2020 00:17:54 +0100 Subject: Chelou maps work, now sides check --- inc/cub3d.h | 2 ++ inc/cub3d_structs.h | 1 + 2 files changed, 3 insertions(+) (limited to 'inc') 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; -- cgit v1.2.3