aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-04-14 19:38:39 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-04-14 19:38:39 +0200
commit6258d231d1c93de7ce061259b3d67dcacd316a2f (patch)
tree970e9dfae5d14f87a8ee88b2bbe0c2b8ab51b92c
parentNorme norme (diff)
download42-cub3d-6258d231d1c93de7ce061259b3d67dcacd316a2f.tar.gz
42-cub3d-6258d231d1c93de7ce061259b3d67dcacd316a2f.tar.bz2
42-cub3d-6258d231d1c93de7ce061259b3d67dcacd316a2f.tar.xz
42-cub3d-6258d231d1c93de7ce061259b3d67dcacd316a2f.tar.zst
42-cub3d-6258d231d1c93de7ce061259b3d67dcacd316a2f.zip
End of main src norme
-rw-r--r--src/ft_check_missing_defines.c24
-rw-r--r--src/ft_del_tex.c1
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);
}
}
-