aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_raycasting.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-23 18:13:59 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-23 18:13:59 +0100
commit78fb5c553758c748db7662d5f4388f52715e335c (patch)
tree3c89a485f45bf64e0f9a168a8118c3f605439815 /src/ft_raycasting.c
parentFixed (diff)
download42-cub3d-78fb5c553758c748db7662d5f4388f52715e335c.tar.gz
42-cub3d-78fb5c553758c748db7662d5f4388f52715e335c.tar.bz2
42-cub3d-78fb5c553758c748db7662d5f4388f52715e335c.tar.xz
42-cub3d-78fb5c553758c748db7662d5f4388f52715e335c.tar.zst
42-cub3d-78fb5c553758c748db7662d5f4388f52715e335c.zip
Fixed sprite shadows
Diffstat (limited to 'src/ft_raycasting.c')
-rw-r--r--src/ft_raycasting.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ft_raycasting.c b/src/ft_raycasting.c
index e6c87ff..1a12c46 100644
--- a/src/ft_raycasting.c
+++ b/src/ft_raycasting.c
@@ -79,7 +79,6 @@ static void
cl->rlist.wall_b = wl->y_size - 1;
ft_choose_tex(cl);
ft_calc_tex(cl);
- ft_draw_verline(cl, i, cl->rlist.wall_t, cl->rlist.wall_b);
cl->rlist.wall_bz[i] = cl->rlist.wall_b;
cl->rlist.wall_dist_tab[i] = cl->rlist.wall_dist;
}
@@ -99,6 +98,7 @@ void
while (i < cl->wlist.x_size)
{
ft_castray_loop(i, &cl->wlist, cl);
+ ft_draw_verline(cl, i, cl->rlist.wall_t, cl->rlist.wall_b);
i++;
}
ft_floor_cast(cl);