aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-11 00:16:16 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-11 00:16:16 +0100
commitac3c64f5438770e351ea6af693db76e51671e5b3 (patch)
tree560bbfd8628b57b051b4571e456186b70af361b4 /src
parentFreed multiple leaks (diff)
download42-cub3d-ac3c64f5438770e351ea6af693db76e51671e5b3.tar.gz
42-cub3d-ac3c64f5438770e351ea6af693db76e51671e5b3.tar.bz2
42-cub3d-ac3c64f5438770e351ea6af693db76e51671e5b3.tar.xz
42-cub3d-ac3c64f5438770e351ea6af693db76e51671e5b3.tar.zst
42-cub3d-ac3c64f5438770e351ea6af693db76e51671e5b3.zip
qwe
Diffstat (limited to 'src')
-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 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