From c8e12617e07762d65bc7c74ecc55e279c3267b84 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Mon, 30 Mar 2020 16:50:13 +0200 Subject: Commit --- inc/cub3d.h | 1 + inc/cub3d_defines.h | 1 + inc/cub3d_structs.h | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) (limited to 'inc') diff --git a/inc/cub3d.h b/inc/cub3d.h index 02cb20d..85e2ab3 100644 --- a/inc/cub3d.h +++ b/inc/cub3d.h @@ -38,6 +38,7 @@ 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); +int8_t ft_init_bad_boys(t_cub *cl); /* ** ====== HOOKS ====== diff --git a/inc/cub3d_defines.h b/inc/cub3d_defines.h index 3d09a81..e47c1f7 100644 --- a/inc/cub3d_defines.h +++ b/inc/cub3d_defines.h @@ -242,6 +242,7 @@ enum # define FT_ERR_TOO_MUCH_W_ONE "too much weapon one, limit is 4" # define FT_ERR_TOO_MUCH_W_TWO "too much weapon two, limit is 4" # define FT_ERR_TOO_MUCH_W_THREE "too much weapon three, limit is 4" +# define FT_ERR_TOO_MUCH_ENMY "too much enemy, limit is 32" /* ** ====== MISSING ERROR MSG ====== diff --git a/inc/cub3d_structs.h b/inc/cub3d_structs.h index 3134786..329f8bb 100644 --- a/inc/cub3d_structs.h +++ b/inc/cub3d_structs.h @@ -228,7 +228,7 @@ typedef struct s_bad_boy { int8_t life; int8_t does; - void (*act[5])(struct s_sprite*, struct s_map*); + void (*act[3])(struct s_sprite*, struct s_map*); } t_bad_boy; typedef struct s_cub -- cgit v1.2.3