diff options
Diffstat (limited to 'src/ft_check_missing.c')
-rw-r--r-- | src/ft_check_missing.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/ft_check_missing.c b/src/ft_check_missing.c index fcebf3f..4b4a3ef 100644 --- a/src/ft_check_missing.c +++ b/src/ft_check_missing.c @@ -40,6 +40,15 @@ static int { int8_t i; + if (ft_check_not_found(FT_WEAPON_ONE_SPR_PATH) < 0 || + ft_check_ext(FT_WEAPON_ONE_SPR_PATH, ".xpm") < 0) + return (ft_missing_error(FT_ERR_MISS_W_ONE_SPR, clist)); + if (ft_check_not_found(FT_WEAPON_TWO_SPR_PATH) < 0 || + ft_check_ext(FT_WEAPON_TWO_SPR_PATH, ".xpm") < 0) + return (ft_missing_error(FT_ERR_MISS_W_TWO_SPR, clist)); + if (ft_check_not_found(FT_HEAL_PACK_PATH) < 0 || + ft_check_ext(FT_HEAL_PACK_PATH, ".xpm") < 0) + return (ft_missing_error(FT_ERR_MISS_HEAL_PACK, clist)); i = 0; while ((i + 2) <= clist->mlist.topsp) { @@ -71,9 +80,6 @@ static int if (ft_check_not_found(FT_WEAPON_TWO_FIRE_PATH) < 0 || ft_check_ext(FT_WEAPON_TWO_FIRE_PATH, ".xpm") < 0) return (ft_missing_error(FT_ERR_MISS_W_TWO_FIRE, clist)); - if (ft_check_not_found(FT_HEAL_PACK_PATH) < 0 || - ft_check_ext(FT_HEAL_PACK_PATH, ".xpm") < 0) - return (ft_missing_error(FT_ERR_MISS_HEAL_PACK, clist)); return (ft_check_missing_sprites(clist)); } |