diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-18 20:14:17 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-18 20:14:17 +0100 |
commit | d1d68677a2b7040d03f33a4e753f1cb5f19070d2 (patch) | |
tree | 93127daec0e4ad3e82854ef9479a04a3bee63af2 /src/ft_check_missing.c | |
parent | I'm a designer (diff) | |
download | 42-cub3d-d1d68677a2b7040d03f33a4e753f1cb5f19070d2.tar.gz 42-cub3d-d1d68677a2b7040d03f33a4e753f1cb5f19070d2.tar.bz2 42-cub3d-d1d68677a2b7040d03f33a4e753f1cb5f19070d2.tar.xz 42-cub3d-d1d68677a2b7040d03f33a4e753f1cb5f19070d2.tar.zst 42-cub3d-d1d68677a2b7040d03f33a4e753f1cb5f19070d2.zip |
Checked missings for weaps
Diffstat (limited to 'src/ft_check_missing.c')
-rw-r--r-- | src/ft_check_missing.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/ft_check_missing.c b/src/ft_check_missing.c index 4d06276..5498058 100644 --- a/src/ft_check_missing.c +++ b/src/ft_check_missing.c @@ -59,6 +59,18 @@ static int if (ft_check_not_found(FT_HUD_BACK_PATH) < 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) + 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) + return (ft_missing_error(FT_ERR_MISS_W_TWO, clist)); + if (ft_check_not_found(FT_WEAPON_ONE_FIRE_PATH) < 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) + return (ft_missing_error(FT_ERR_MISS_W_TWO_FIRE, clist)); return (ft_check_missing_sprites(clist)); } |