aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_check_missing.c
diff options
context:
space:
mode:
authorRudy Bousset <rbousset@z2r4p3.le-101.fr>2020-02-05 20:34:42 +0100
committerRudy Bousset <rbousset@z2r4p3.le-101.fr>2020-02-05 20:34:42 +0100
commiteb11f281970bfe7bbf17786089709d4e0016b8c7 (patch)
tree61e4dcb1a75c4272a71bcf0e2c49cb0968e176d6 /src/ft_check_missing.c
parentChanged return values (diff)
download42-cub3d-eb11f281970bfe7bbf17786089709d4e0016b8c7.tar.gz
42-cub3d-eb11f281970bfe7bbf17786089709d4e0016b8c7.tar.bz2
42-cub3d-eb11f281970bfe7bbf17786089709d4e0016b8c7.tar.xz
42-cub3d-eb11f281970bfe7bbf17786089709d4e0016b8c7.tar.zst
42-cub3d-eb11f281970bfe7bbf17786089709d4e0016b8c7.zip
Norme
Diffstat (limited to 'src/ft_check_missing.c')
-rw-r--r--src/ft_check_missing.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/ft_check_missing.c b/src/ft_check_missing.c
index 00bfbe9..ece2ba6 100644
--- a/src/ft_check_missing.c
+++ b/src/ft_check_missing.c
@@ -27,7 +27,6 @@ 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])
@@ -40,9 +39,11 @@ 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_rgb.r == -1 || clist->f_rgb.g == -1 || clist->f_rgb.b == -1)
+ 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_rgb.r == -1 || clist->c_rgb.g == -1 || clist->c_rgb.b == -1)
+ 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));