From 02433637a499cd48e501d89c54e6ddf488dca98f Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Wed, 11 Mar 2020 00:27:19 +0100 Subject: qweqwe --- src/ft_floor_cast.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'src/ft_floor_cast.c') diff --git a/src/ft_floor_cast.c b/src/ft_floor_cast.c index d2c6046..1082fe5 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