diff options
author | Rudy Bousset <rbousset@z2r4p3.le-101.fr> | 2020-02-05 14:12:03 +0100 |
---|---|---|
committer | Rudy Bousset <rbousset@z2r4p3.le-101.fr> | 2020-02-05 14:12:03 +0100 |
commit | e6bbc5e1a7d1b88a5ed241283ec19fbaa672dc33 (patch) | |
tree | 7b5e2219785805cefc80bd209c892df42679c303 /src/ft_check_missing.c | |
parent | Better code (diff) | |
download | 42-cub3d-e6bbc5e1a7d1b88a5ed241283ec19fbaa672dc33.tar.gz 42-cub3d-e6bbc5e1a7d1b88a5ed241283ec19fbaa672dc33.tar.bz2 42-cub3d-e6bbc5e1a7d1b88a5ed241283ec19fbaa672dc33.tar.xz 42-cub3d-e6bbc5e1a7d1b88a5ed241283ec19fbaa672dc33.tar.zst 42-cub3d-e6bbc5e1a7d1b88a5ed241283ec19fbaa672dc33.zip |
Bug fix
Diffstat (limited to '')
-rw-r--r-- | src/ft_check_missing.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ft_check_missing.c b/src/ft_check_missing.c index 325af54..50fabbb 100644 --- a/src/ft_check_missing.c +++ b/src/ft_check_missing.c @@ -35,6 +35,8 @@ int return (ft_missing_error("east side texture", clist)); else if (!clist->we_tex_path[0]) return (ft_missing_error("west side texture", clist)); + else if (!clist->sprite_path[0]) + return (ft_missing_error("sprite texture", clist)); else if (clist->wlist->x_size == 0 || clist->wlist->y_size == 0) return (ft_missing_error("resolution", clist)); else if (clist->f_color < 0) |