diff options
author | salaaad2 <arthurdurant263@gmail.com> | 2020-02-17 17:46:11 +0100 |
---|---|---|
committer | salaaad2 <arthurdurant263@gmail.com> | 2020-02-17 17:46:11 +0100 |
commit | 39b3e74b166e69814d2bec2853d6b53cf274af78 (patch) | |
tree | b3c28ed051f1951a80f2d6b45b1210b4c98eae50 /src/ft_draw_verline.c | |
parent | Norme (diff) | |
download | 42-cub3d-39b3e74b166e69814d2bec2853d6b53cf274af78.tar.gz 42-cub3d-39b3e74b166e69814d2bec2853d6b53cf274af78.tar.bz2 42-cub3d-39b3e74b166e69814d2bec2853d6b53cf274af78.tar.xz 42-cub3d-39b3e74b166e69814d2bec2853d6b53cf274af78.tar.zst 42-cub3d-39b3e74b166e69814d2bec2853d6b53cf274af78.zip |
add shadows and beginning of wall coordinate hit detection
Diffstat (limited to 'src/ft_draw_verline.c')
-rw-r--r-- | src/ft_draw_verline.c | 2 |
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); |