aboutsummaryrefslogtreecommitdiffstats
path: root/inc
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-16 16:46:55 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-16 16:46:55 +0100
commita67bc79504a399ad0194d104aa250725bf6280b1 (patch)
tree11baea826121a1295b48fd084357577b7d0dbfac /inc
parentAdded bonus rule (diff)
download42-cub3d-a67bc79504a399ad0194d104aa250725bf6280b1.tar.gz
42-cub3d-a67bc79504a399ad0194d104aa250725bf6280b1.tar.bz2
42-cub3d-a67bc79504a399ad0194d104aa250725bf6280b1.tar.xz
42-cub3d-a67bc79504a399ad0194d104aa250725bf6280b1.tar.zst
42-cub3d-a67bc79504a399ad0194d104aa250725bf6280b1.zip
Debug in progress
Diffstat (limited to 'inc')
-rw-r--r--inc/cub3d.h1
-rw-r--r--inc/cub3d_structs.h2
2 files changed, 2 insertions, 1 deletions
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;