From 427d1819c0991b1fb94708a5b8580828c8462d2a Mon Sep 17 00:00:00 2001 From: Rudy Bousset Date: Sun, 8 Mar 2020 17:59:07 +0100 Subject: We close --- src/ft_raycasting.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/ft_raycasting.c') diff --git a/src/ft_raycasting.c b/src/ft_raycasting.c index c83604f..0a4b8b5 100644 --- a/src/ft_raycasting.c +++ b/src/ft_raycasting.c @@ -117,6 +117,7 @@ void while (i < wl->x_size) { ft_initray(i, cl); + ft_floor_cast(cl); cl->rlist.line_h = (int16_t)(wl->y_size / cl->rlist.wall_dist); cl->rlist.wall_t = -cl->rlist.line_h / 2 + wl->y_size / 2; if (cl->rlist.wall_t < 0) -- cgit v1.2.3