diff options
-rw-r--r-- | src/ft_check_missing_defines.c | 24 | ||||
-rw-r--r-- | src/ft_del_tex.c | 1 |
2 files changed, 12 insertions, 13 deletions
diff --git a/src/ft_check_missing_defines.c b/src/ft_check_missing_defines.c index 7994a8a..bc4054c 100644 --- a/src/ft_check_missing_defines.c +++ b/src/ft_check_missing_defines.c @@ -20,21 +20,21 @@ static int 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) + 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) + ft_check_ext(FT_CAP_AMMO_PATH, ".xpm") < 0) return (ft_missing_error(FT_ERR_MISS_A_CAPTION, clist)); if (clist->mlist.enemy == 1) { if (ft_check_not_found(FT_HEAL_PACK_PATH) < 0 || - ft_check_ext(FT_HEAL_PACK_PATH, ".xpm") < 0) + ft_check_ext(FT_HEAL_PACK_PATH, ".xpm") < 0) return (ft_missing_error(FT_ERR_MISS_HEAL_PACK, clist)); } else { if (ft_check_not_found(FT_HEAL_PACK_PATH) < 0 || - ft_check_ext(FT_HEAL_PACK_PATH, ".xpm") < 0) + ft_check_ext(FT_HEAL_PACK_PATH, ".xpm") < 0) return (ft_missing_error(FT_ERR_MISS_HEAL_PACK, clist)); } return (ft_check_missing_sfx(clist)); @@ -103,28 +103,28 @@ int ft_check_missing_tex_defines(t_cub *clist) { if (ft_check_not_found(FT_DEATH_SCREEN_PATH) < 0 || - ft_check_ext(FT_DEATH_SCREEN_PATH, ".xpm") < 0) + ft_check_ext(FT_DEATH_SCREEN_PATH, ".xpm") < 0) return (ft_missing_error(FT_ERR_MISS_DEATH_SCREEN, clist)); if (ft_check_not_found(FT_HUD_BACK_PATH) < 0 || - ft_check_ext(FT_HUD_BACK_PATH, ".xpm") < 0) + ft_check_ext(FT_HUD_BACK_PATH, ".xpm") < 0) return (ft_missing_error(FT_ERR_MISS_HUD_BACK, clist)); if (ft_check_not_found(FT_WEAPON_ONE_PATH) < 0 || - ft_check_ext(FT_WEAPON_ONE_PATH, ".xpm") < 0) + ft_check_ext(FT_WEAPON_ONE_PATH, ".xpm") < 0) return (ft_missing_error(FT_ERR_MISS_W_ONE, clist)); if (ft_check_not_found(FT_WEAPON_TWO_PATH) < 0 || - ft_check_ext(FT_WEAPON_TWO_PATH, ".xpm") < 0) + ft_check_ext(FT_WEAPON_TWO_PATH, ".xpm") < 0) return (ft_missing_error(FT_ERR_MISS_W_TWO, clist)); if (ft_check_not_found(FT_WEAPON_THREE_PATH) < 0 || - ft_check_ext(FT_WEAPON_THREE_PATH, ".xpm") < 0) + ft_check_ext(FT_WEAPON_THREE_PATH, ".xpm") < 0) return (ft_missing_error(FT_ERR_MISS_W_THREE, clist)); if (ft_check_not_found(FT_WEAPON_ONE_FIRE_PATH) < 0 || - ft_check_ext(FT_WEAPON_ONE_FIRE_PATH, ".xpm") < 0) + ft_check_ext(FT_WEAPON_ONE_FIRE_PATH, ".xpm") < 0) return (ft_missing_error(FT_ERR_MISS_W_ONE_FIRE, clist)); if (ft_check_not_found(FT_WEAPON_TWO_FIRE_PATH) < 0 || - ft_check_ext(FT_WEAPON_TWO_FIRE_PATH, ".xpm") < 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_WEAPON_THREE_FIRE_PATH) < 0 || - ft_check_ext(FT_WEAPON_THREE_FIRE_PATH, ".xpm") < 0) + ft_check_ext(FT_WEAPON_THREE_FIRE_PATH, ".xpm") < 0) return (ft_missing_error(FT_ERR_MISS_W_THREE_FIRE, clist)); return (ft_check_missing_more_tex_defines(clist)); } diff --git a/src/ft_del_tex.c b/src/ft_del_tex.c index 5e53366..d2b5a1c 100644 --- a/src/ft_del_tex.c +++ b/src/ft_del_tex.c @@ -111,4 +111,3 @@ void ft_del_extra_sprites(cl); } } - |