From a67bc79504a399ad0194d104aa250725bf6280b1 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Mon, 16 Mar 2020 16:46:55 +0100 Subject: Debug in progress --- inc/cub3d.h | 1 + inc/cub3d_structs.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'inc') diff --git a/inc/cub3d.h b/inc/cub3d.h index 6c9a010..b524b9a 100644 --- a/inc/cub3d.h +++ b/inc/cub3d.h @@ -35,6 +35,7 @@ t_bmp_file ft_init_bmp(void); t_bmp_info ft_init_bmp_info(void); t_rgb ft_hex_to_og_rgb(uint32_t color); int8_t ft_init_sfx(t_sfx *sfx); +t_sprite **ft_init_sprites(void); /* ** ====== HOOKS ====== diff --git a/inc/cub3d_structs.h b/inc/cub3d_structs.h index 7545f3b..9ea3d08 100644 --- a/inc/cub3d_structs.h +++ b/inc/cub3d_structs.h @@ -243,7 +243,7 @@ typedef struct s_cub struct s_rgb f_rgb; struct s_rgb c_rgb; struct s_img tlist[16]; - struct s_sprite sprites[8][4096]; + struct s_sprite **sprites; struct s_sprite traps[512]; struct s_sfx sfx; } t_cub; -- cgit v1.2.3