aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_raycasting.c
diff options
context:
space:
mode:
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);