diff options
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)); |