diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-30 15:36:16 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-30 15:36:16 +0200 |
commit | 5d2dfe4daed3a0c0a9f872cc6c3baa4124ea0894 (patch) | |
tree | 9f706d2c691ac8e23f0b8d804baca3d80fb9e9bf /src | |
parent | Norm (diff) | |
download | 42-cub3d-5d2dfe4daed3a0c0a9f872cc6c3baa4124ea0894.tar.gz 42-cub3d-5d2dfe4daed3a0c0a9f872cc6c3baa4124ea0894.tar.bz2 42-cub3d-5d2dfe4daed3a0c0a9f872cc6c3baa4124ea0894.tar.xz 42-cub3d-5d2dfe4daed3a0c0a9f872cc6c3baa4124ea0894.tar.zst 42-cub3d-5d2dfe4daed3a0c0a9f872cc6c3baa4124ea0894.zip |
Check missing enemy good
Diffstat (limited to '')
-rw-r--r-- | src/ft_check_missing_defines.c | 22 | ||||
-rw-r--r-- | src/ft_get_spawns.c | 4 |
2 files changed, 16 insertions, 10 deletions
diff --git a/src/ft_check_missing_defines.c b/src/ft_check_missing_defines.c index bf5bd6d..a25c5ee 100644 --- a/src/ft_check_missing_defines.c +++ b/src/ft_check_missing_defines.c @@ -19,8 +19,15 @@ static int if (ft_check_not_found(FT_INF_PATH) < 0 || ft_check_ext(FT_INF_PATH, ".xpm") < 0) return (ft_missing_error(FT_ERR_MISS_NUMBER, clist)); + if (ft_check_not_found(FT_CAP_HEALTH_PATH) < 0 || + ft_check_ext(FT_CAP_HEALTH_PATH, ".xpm") < 0) + return (ft_missing_error(FT_ERR_MISS_H_CAPTION, clist)); + if (ft_check_not_found(FT_CAP_AMMO_PATH) < 0 || + ft_check_ext(FT_CAP_AMMO_PATH, ".xpm") < 0) + return (ft_missing_error(FT_ERR_MISS_A_CAPTION, clist)); return (ft_check_missing_sfx(clist)); } + static int ft_check_missing_number_defines(t_cub *clist) { @@ -53,12 +60,15 @@ static int static int ft_check_missing_more_tex_defines(t_cub *clist) { - if (ft_check_not_found(FT_CAP_HEALTH_PATH) < 0 || - ft_check_ext(FT_CAP_HEALTH_PATH, ".xpm") < 0) - return (ft_missing_error(FT_ERR_MISS_H_CAPTION, clist)); - if (ft_check_not_found(FT_CAP_AMMO_PATH) < 0 || - ft_check_ext(FT_CAP_AMMO_PATH, ".xpm") < 0) - return (ft_missing_error(FT_ERR_MISS_A_CAPTION, clist)); + if (ft_check_not_found(FT_ENMY_WAIT_PATH) < 0 || + ft_check_ext(FT_ENMY_WAIT_PATH, ".xpm") < 0 || + ft_check_not_found(FT_ENMY_WALK_PATH) < 0 || + ft_check_ext(FT_ENMY_WALK_PATH, ".xpm") < 0 || + ft_check_not_found(FT_ENMY_FIRE_PATH) < 0 || + ft_check_ext(FT_ENMY_FIRE_PATH, ".xpm") < 0 || + ft_check_not_found(FT_ENMY_DEAD_PATH) < 0 || + ft_check_ext(FT_ENMY_DEAD_PATH, ".xpm") < 0) + return (ft_missing_error(FT_ERR_MISS_ENMY, clist)) return (ft_check_missing_number_defines(clist)); } diff --git a/src/ft_get_spawns.c b/src/ft_get_spawns.c index 0caedf3..9ac88b8 100644 --- a/src/ft_get_spawns.c +++ b/src/ft_get_spawns.c @@ -19,8 +19,4 @@ void { ft_get_player_spawn(&cl->plist, cl); ft_get_sprite_spawn(cl); - /* ft_get_trap_spawn(cl); */ - /* ft_get_heal_spawn(cl); */ - /* if (cl->isdead == 0) */ - /* ft_get_weapon_spawn(cl); */ } |