From 04658c5e9a019917c3f8ffeb84562c328da0a885 Mon Sep 17 00:00:00 2001 From: salaaad2 Date: Fri, 6 Mar 2020 18:40:56 +0100 Subject: ils se cachent (mal) --- inc/cub3d_structs.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'inc') diff --git a/inc/cub3d_structs.h b/inc/cub3d_structs.h index 102b985..7b86d09 100644 --- a/inc/cub3d_structs.h +++ b/inc/cub3d_structs.h @@ -89,6 +89,7 @@ typedef struct s_ray { uint16_t line_h; float wall_dist; + float wall_dist_tab[4096]; float x_ray_pos; float y_ray_pos; float x_ray_dir; @@ -116,6 +117,8 @@ typedef struct s_map char *sprite_path; char *mapl; char **map; + int32_t sprite_nbr; + int32_t sprite_order[12]; int8_t x_step; int8_t y_step; size_t map_w; @@ -142,7 +145,7 @@ typedef struct s_cub struct s_rgb f_rgb; struct s_rgb c_rgb; struct s_img tlist[5]; - struct s_sprite sprites; + struct s_sprite sprites[12]; } t_cub; # endif -- cgit v1.2.3