diff options
author | Rudy Bousset <rbousset@z2r4p3.le-101.fr> | 2020-02-05 17:26:10 +0100 |
---|---|---|
committer | Rudy Bousset <rbousset@z2r4p3.le-101.fr> | 2020-02-05 17:26:10 +0100 |
commit | 08dce587032f08c5bfbc2790bdb2d668ca1990c1 (patch) | |
tree | a927bf674dfa6d1d3efd03ef06dfacb115ae238f /src/ft_check_missing.c | |
parent | map fix (diff) | |
download | 42-cub3d-08dce587032f08c5bfbc2790bdb2d668ca1990c1.tar.gz 42-cub3d-08dce587032f08c5bfbc2790bdb2d668ca1990c1.tar.bz2 42-cub3d-08dce587032f08c5bfbc2790bdb2d668ca1990c1.tar.xz 42-cub3d-08dce587032f08c5bfbc2790bdb2d668ca1990c1.tar.zst 42-cub3d-08dce587032f08c5bfbc2790bdb2d668ca1990c1.zip |
int16_tamer
Diffstat (limited to 'src/ft_check_missing.c')
-rw-r--r-- | src/ft_check_missing.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ft_check_missing.c b/src/ft_check_missing.c index 50fabbb..00bfbe9 100644 --- a/src/ft_check_missing.c +++ b/src/ft_check_missing.c @@ -27,6 +27,7 @@ int int ft_check_missing(t_cub *clist) { + ft_printf("[%d], [%d], [%d]\n", clist->f_rgb.r, clist->f_rgb.g, clist->f_rgb.b); if (!clist->no_tex_path[0]) return (ft_missing_error("north side texture", clist)); else if (!clist->so_tex_path[0]) @@ -39,9 +40,9 @@ int 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) + else if (clist->f_rgb.r == -1 || clist->f_rgb.g == -1 || clist->f_rgb.b == -1) return (ft_missing_error("floor color", clist)); - else if (clist->c_color < 0) + else if (clist->c_rgb.r == -1 || clist->c_rgb.g == -1 || clist->c_rgb.b == -1) return (ft_missing_error("ceiling color", clist)); else if (clist->plist->pos_x == 0 || clist->plist->pos_y == 0) return (ft_missing_error("player spawn", clist)); |