From 6f505e5f2144f637a5a73916da3b3b3719751003 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Sat, 14 Mar 2020 17:31:33 +0100 Subject: Trying death screen --- src/ft_check_missing.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/ft_check_missing.c') 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)); } -- cgit v1.2.3