aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_floor_cast.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-11 00:27:19 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-11 00:27:19 +0100
commit02433637a499cd48e501d89c54e6ddf488dca98f (patch)
treeb6ecc429ce0dace1cd0c98a519d913425ff4b013 /src/ft_floor_cast.c
parentPas trop ecole opti memoire mais ok (diff)
download42-cub3d-02433637a499cd48e501d89c54e6ddf488dca98f.tar.gz
42-cub3d-02433637a499cd48e501d89c54e6ddf488dca98f.tar.bz2
42-cub3d-02433637a499cd48e501d89c54e6ddf488dca98f.tar.xz
42-cub3d-02433637a499cd48e501d89c54e6ddf488dca98f.tar.zst
42-cub3d-02433637a499cd48e501d89c54e6ddf488dca98f.zip
qweqwe
Diffstat (limited to 'src/ft_floor_cast.c')
-rw-r--r--src/ft_floor_cast.c10
1 files changed, 1 insertions, 9 deletions
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