diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-29 15:42:37 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-29 15:42:37 +0200 |
commit | 76cefdc4dc3efa6eb410574a0f5ec42188ba11bd (patch) | |
tree | 755a05ecf1380be7e4011277e7aa657e9a76f6e6 /inc | |
parent | Awesome (diff) | |
download | 42-cub3d-76cefdc4dc3efa6eb410574a0f5ec42188ba11bd.tar.gz 42-cub3d-76cefdc4dc3efa6eb410574a0f5ec42188ba11bd.tar.bz2 42-cub3d-76cefdc4dc3efa6eb410574a0f5ec42188ba11bd.tar.xz 42-cub3d-76cefdc4dc3efa6eb410574a0f5ec42188ba11bd.tar.zst 42-cub3d-76cefdc4dc3efa6eb410574a0f5ec42188ba11bd.zip |
Almost
Diffstat (limited to 'inc')
-rw-r--r-- | inc/cub3d.h | 12 | ||||
-rw-r--r-- | inc/cub3d_structs.h | 2 |
2 files changed, 11 insertions, 3 deletions
diff --git a/inc/cub3d.h b/inc/cub3d.h index a6a0db7..82808f4 100644 --- a/inc/cub3d.h +++ b/inc/cub3d.h @@ -157,12 +157,19 @@ void ft_check_map_surrounds(t_map *ml, t_cub *cl); int ft_check_missing(t_cub *clist); int ft_check_missing_tex_defines(t_cub *clist); int ft_check_missing_sfx(t_cub *clist); -int ft_missing_error(const char *err, t_cub *clist); -int ft_map_error(const char *errmsg, t_cub *clist); size_t ft_get_line_len(char *line); void ft_get_spawns(t_cub *cl); /* +** ====== ERROR ====== +*/ + +int ft_error(uint8_t retval, const char *errmsg, t_cub *clist); +int ft_missing_error(const char *err, t_cub *clist); +int ft_map_error(const char *errmsg, t_cub *clist); +int ft_alloc_error(t_cub *clist); + +/* ** ====== ARGS ====== */ @@ -239,7 +246,6 @@ void ft_set_minimap_scale(t_cub *clist); void ft_enable_music(t_cub *cl); void ft_music_fork(char **mcmd_words, char *const envp[]); int8_t ft_save_to_bmp(t_cub *cl); -int ft_error(uint8_t retval, const char *errmsg, t_cub *clist); int8_t ft_warp_level(char *path, t_cub *cl); uint32_t ft_rgb_to_hex(float dist, t_rgb rgb, t_cub *cl); t_bmp_rgb ft_hex_to_rgb(uint32_t color); diff --git a/inc/cub3d_structs.h b/inc/cub3d_structs.h index 5af18a4..5497ae9 100644 --- a/inc/cub3d_structs.h +++ b/inc/cub3d_structs.h @@ -236,6 +236,8 @@ typedef struct s_cub uint16_t currlvl; uint16_t i; uint16_t y; + float **big_t; + uint16_t big_t_val; char errmsg[64]; int32_t key_input[5]; char fps_count[9]; |