diff options
Diffstat (limited to 'src')
-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); */ } |