aboutsummaryrefslogtreecommitdiffstats
path: root/inc
diff options
context:
space:
mode:
Diffstat (limited to 'inc')
-rw-r--r--inc/cub3d.h1
-rw-r--r--inc/cub3d_defines.h1
-rw-r--r--inc/cub3d_structs.h2
3 files changed, 3 insertions, 1 deletions
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