aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_raycasting.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-15 19:42:48 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-15 19:42:48 +0100
commit75f54cd49e5b9942678d2b8a8137ca1110a785f5 (patch)
tree9abbe2b12a0d1cc016bc3bfa5ce95f15d6cd625d /src/ft_raycasting.c
parentRevert (diff)
download42-cub3d-75f54cd49e5b9942678d2b8a8137ca1110a785f5.tar.gz
42-cub3d-75f54cd49e5b9942678d2b8a8137ca1110a785f5.tar.bz2
42-cub3d-75f54cd49e5b9942678d2b8a8137ca1110a785f5.tar.xz
42-cub3d-75f54cd49e5b9942678d2b8a8137ca1110a785f5.tar.zst
42-cub3d-75f54cd49e5b9942678d2b8a8137ca1110a785f5.zip
Valgrind errors fix
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 a0720ea..743dc36 100644
--- a/src/ft_raycasting.c
+++ b/src/ft_raycasting.c
@@ -78,7 +78,6 @@ static void
cl->rlist.wall_b = cl->rlist.line_h / 2 + wl->y_size / 2;
if (cl->rlist.wall_b >= (int16_t)wl->y_size)
cl->rlist.wall_b = wl->y_size - 1;
- cl->rlist.wall_bz[i] = cl->rlist.wall_b;
}
void
@@ -101,6 +100,7 @@ void
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;
i++;
}