diff options
Diffstat (limited to 'inc')
-rw-r--r-- | inc/cub3d.h | 1 | ||||
-rw-r--r-- | inc/cub3d_structs.h | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/inc/cub3d.h b/inc/cub3d.h index 2c25857..5f36a2e 100644 --- a/inc/cub3d.h +++ b/inc/cub3d.h @@ -36,6 +36,7 @@ t_bmp_info ft_init_bmp_info(void); t_rgb ft_hex_to_og_rgb(uint32_t color); int8_t ft_init_sfx(t_cub *cl); int8_t ft_init_sprites(t_sprite ***sprites); +int8_t ft_init_weaps(t_sprite ***weaps); /* ** ====== HOOKS ====== diff --git a/inc/cub3d_structs.h b/inc/cub3d_structs.h index 259cf05..85031bb 100644 --- a/inc/cub3d_structs.h +++ b/inc/cub3d_structs.h @@ -259,7 +259,7 @@ typedef struct s_cub struct s_sprite **sprites; struct s_sprite traps[512]; struct s_sprite heals[64]; - struct s_sprite weaps[2][1]; + struct s_sprite **weaps; struct s_sfx sfx[10]; } t_cub; |