From ac3c64f5438770e351ea6af693db76e51671e5b3 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Wed, 11 Mar 2020 00:16:16 +0100 Subject: qwe --- src/ft_floor_cast.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'src') diff --git a/src/ft_floor_cast.c b/src/ft_floor_cast.c index 384f699..a7e3de2 100644 --- a/src/ft_floor_cast.c +++ b/src/ft_floor_cast.c @@ -16,16 +16,8 @@ static void ft_draw_plain_horizontal(t_rgb rgb, t_cub *cl, int32_t y, int32_t x) { - if (cl->mlist.darklvl > 0) - { - *(int*)(cl->img.ptr + + *(int*)(cl->img.ptr + (x * 4 + (y * cl->img.sizeline))) = ft_darken(rgb, cl); - } - else - { - *(int*)(cl->img.ptr + - (x * 4 + (y * cl->img.sizeline))) = ft_rgb_to_hex(rgb); - } } static void -- cgit v1.2.3