aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_draw_verline.c
diff options
context:
space:
mode:
authorRudy Bousset <rbousset@z2r4p3.le-101.fr>2020-02-17 20:49:12 +0100
committerRudy Bousset <rbousset@z2r4p3.le-101.fr>2020-02-17 20:49:12 +0100
commitaa092dbabd6b1e66b8b52e7ecfc897f7c23be37a (patch)
tree098ad2f761c5f8c67bfa99c1111639aa96b7c0eb /src/ft_draw_verline.c
parentsex (diff)
parentRead to merge (diff)
download42-cub3d-aa092dbabd6b1e66b8b52e7ecfc897f7c23be37a.tar.gz
42-cub3d-aa092dbabd6b1e66b8b52e7ecfc897f7c23be37a.tar.bz2
42-cub3d-aa092dbabd6b1e66b8b52e7ecfc897f7c23be37a.tar.xz
42-cub3d-aa092dbabd6b1e66b8b52e7ecfc897f7c23be37a.tar.zst
42-cub3d-aa092dbabd6b1e66b8b52e7ecfc897f7c23be37a.zip
Merge branch 'textures_continued'
Diffstat (limited to '')
-rw-r--r--src/ft_draw_verline.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ft_draw_verline.c b/src/ft_draw_verline.c
index bcddbc7..0fad33a 100644
--- a/src/ft_draw_verline.c
+++ b/src/ft_draw_verline.c
@@ -60,7 +60,7 @@ int8_t
ft_choose_tex(cl);
while (y <= y2)
{
- *(int*)(cl->img.ptr + (x * 4 + (y * cl->img.sizeline))) = 0x0000ffaa;
+ *(int*)(cl->img.ptr + (x * 4 + (y * cl->img.sizeline))) = (cl->rlist.side) ? 0x0000eeaa : 0x0000ffaa;
y++;
}
ft_draw_floor(cl, y, x);