From 9cfb17757344a8afd94be596dac2d199f4eeea69 Mon Sep 17 00:00:00 2001 From: Alexandre POMMIER Date: Fri, 17 Jun 2022 15:21:46 +0200 Subject: [PATCH] fix floor color --- srcs/cast_ray/set_back.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/srcs/cast_ray/set_back.c b/srcs/cast_ray/set_back.c index 2ab8acc..1d77625 100644 --- a/srcs/cast_ray/set_back.c +++ b/srcs/cast_ray/set_back.c @@ -6,7 +6,7 @@ /* By: apommier +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2022/06/15 18:46:05 by apommier #+# #+# */ -/* Updated: 2022/06/15 18:55:47 by apommier ### ########.fr */ +/* Updated: 2022/06/17 15:20:54 by apommier ### ########.fr */ /* */ /* ************************************************************************** */ @@ -21,13 +21,10 @@ void set_back(t_data *img) { if (x > 512 * 960 * 2) { - if (img->map.floor.b) - { img->buffer[x + 0] = img->map.floor.b; img->buffer[x + 1] = img->map.floor.g; img->buffer[x + 2] = img->map.floor.r; img->buffer[x + 3] = 0; - } } else {