diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-14 17:31:33 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-14 17:31:33 +0100 |
commit | 6f505e5f2144f637a5a73916da3b3b3719751003 (patch) | |
tree | 25d529624e4b863ec55dc51ade478ab6d168eed2 /src/ft_check_missing.c | |
parent | Removed bloat (diff) | |
download | 42-cub3d-6f505e5f2144f637a5a73916da3b3b3719751003.tar.gz 42-cub3d-6f505e5f2144f637a5a73916da3b3b3719751003.tar.bz2 42-cub3d-6f505e5f2144f637a5a73916da3b3b3719751003.tar.xz 42-cub3d-6f505e5f2144f637a5a73916da3b3b3719751003.tar.zst 42-cub3d-6f505e5f2144f637a5a73916da3b3b3719751003.zip |
Trying death screen
Diffstat (limited to 'src/ft_check_missing.c')
-rw-r--r-- | src/ft_check_missing.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ft_check_missing.c b/src/ft_check_missing.c index 617e8f5..a17bdea 100644 --- a/src/ft_check_missing.c +++ b/src/ft_check_missing.c @@ -82,6 +82,9 @@ static int return (ft_missing_error(FT_ERR_MISS_NLVL_PATH, clist)); if (clist->mlist.istraps && !clist->mlist.traps_path[0]) return (ft_missing_error(FT_ERR_MISS_TRAP, clist)); + if (ft_check_not_found(FT_DEATH_SCREEN_PATH) < 0 || + ft_check_ext(FT_DEATH_SCREEN_PATH, ".xpm") < 0) + return (ft_missing_error(FT_ERR_MISS_DEATH_SCREEN, clist)); return (ft_check_missing_sprites(clist)); } |