aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-20 15:53:34 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-20 15:53:34 +0100
commit635ffbadfe5390c5182b84ab47de3a7204309b0b (patch)
tree1becdec2f648ad9c5878af94bd6b10ce896fabd5 /src
parentReady to rework (diff)
download42-cub3d-635ffbadfe5390c5182b84ab47de3a7204309b0b.tar.gz
42-cub3d-635ffbadfe5390c5182b84ab47de3a7204309b0b.tar.bz2
42-cub3d-635ffbadfe5390c5182b84ab47de3a7204309b0b.tar.xz
42-cub3d-635ffbadfe5390c5182b84ab47de3a7204309b0b.tar.zst
42-cub3d-635ffbadfe5390c5182b84ab47de3a7204309b0b.zip
Added number images
Diffstat (limited to 'src')
-rw-r--r--src/ft_check_missing.c23
-rw-r--r--src/ft_draw_life_bar.c9
2 files changed, 23 insertions, 9 deletions
diff --git a/src/ft_check_missing.c b/src/ft_check_missing.c
index 2681143..fb2da64 100644
--- a/src/ft_check_missing.c
+++ b/src/ft_check_missing.c
@@ -95,6 +95,29 @@ 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_ZER_PATH) < 0 ||
+ ft_check_ext(FT_ZER_PATH, ".xpm") < 0 ||
+ ft_check_not_found(FT_ONE_PATH) < 0 ||
+ ft_check_ext(FT_ONE_PATH, ".xpm") < 0 ||
+ ft_check_not_found(FT_TWO_PATH) < 0 ||
+ ft_check_ext(FT_TWO_PATH, ".xpm") < 0 ||
+ ft_check_not_found(FT_THR_PATH) < 0 ||
+ ft_check_ext(FT_THR_PATH, ".xpm") < 0 ||
+ ft_check_not_found(FT_FOU_PATH) < 0 ||
+ ft_check_ext(FT_FOU_PATH, ".xpm") < 0 ||
+ ft_check_not_found(FT_FIV_PATH) < 0 ||
+ ft_check_ext(FT_FIV_PATH, ".xpm") < 0 ||
+ ft_check_not_found(FT_SIX_PATH) < 0 ||
+ ft_check_ext(FT_SIX_PATH, ".xpm") < 0 ||
+ ft_check_not_found(FT_SEV_PATH) < 0 ||
+ ft_check_ext(FT_SEV_PATH, ".xpm") < 0 ||
+ ft_check_not_found(FT_EIG_PATH) < 0 ||
+ ft_check_ext(FT_EIG_PATH, ".xpm") < 0 ||
+ ft_check_not_found(FT_NIN_PATH) < 0 ||
+ ft_check_ext(FT_NIN_PATH, ".xpm") < 0 ||
+ ft_check_not_found(FT_PER_PATH) < 0 ||
+ ft_check_ext(FT_PER_PATH, ".xpm") < 0)
+ return (ft_missing_error(FT_ERR_MISS_NUMBER, clist));
return (ft_check_missing_sprites(clist));
}
diff --git a/src/ft_draw_life_bar.c b/src/ft_draw_life_bar.c
index 11fdaf5..153a71e 100644
--- a/src/ft_draw_life_bar.c
+++ b/src/ft_draw_life_bar.c
@@ -13,18 +13,9 @@
#include <cub3d.h>
#include <stdint.h>
-static void
- ft_draw_green_life(uint16_t h, t_win *wl, t_cub *cl)
-{
- (void)h;
- (void)wl;
- (void)cl;
-}
-
void
ft_draw_life_bar(t_win *wl, t_cub *cl)
{
(void)wl;
(void)cl;
- ft_draw_green_life(1, wl, cl);
}