From 78fb5c553758c748db7662d5f4388f52715e335c Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Mon, 23 Mar 2020 18:13:59 +0100 Subject: Fixed sprite shadows --- src/ft_raycasting.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ft_raycasting.c') 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); -- cgit v1.2.3