aboutsummaryrefslogtreecommitdiffstats
path: root/inc
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-30 16:50:13 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-30 16:50:13 +0200
commitc8e12617e07762d65bc7c74ecc55e279c3267b84 (patch)
tree2114b7906acdef1d5d5f2c580c62d612bf4819ca /inc
parentFixed conditionnal jump btw (diff)
download42-cub3d-c8e12617e07762d65bc7c74ecc55e279c3267b84.tar.gz
42-cub3d-c8e12617e07762d65bc7c74ecc55e279c3267b84.tar.bz2
42-cub3d-c8e12617e07762d65bc7c74ecc55e279c3267b84.tar.xz
42-cub3d-c8e12617e07762d65bc7c74ecc55e279c3267b84.tar.zst
42-cub3d-c8e12617e07762d65bc7c74ecc55e279c3267b84.zip
Commit
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