aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_raycasting.c
diff options
context:
space:
mode:
authorRudy Bousset <rbousset@z2r4p1.le-101.fr>2020-03-08 17:59:07 +0100
committerRudy Bousset <rbousset@z2r4p1.le-101.fr>2020-03-08 17:59:07 +0100
commit427d1819c0991b1fb94708a5b8580828c8462d2a (patch)
tree340d6eacc04aea3730b8bc056a1a21ebcc5b4ed3 /src/ft_raycasting.c
parentPsychedelic (diff)
download42-cub3d-427d1819c0991b1fb94708a5b8580828c8462d2a.tar.gz
42-cub3d-427d1819c0991b1fb94708a5b8580828c8462d2a.tar.bz2
42-cub3d-427d1819c0991b1fb94708a5b8580828c8462d2a.tar.xz
42-cub3d-427d1819c0991b1fb94708a5b8580828c8462d2a.tar.zst
42-cub3d-427d1819c0991b1fb94708a5b8580828c8462d2a.zip
We close
Diffstat (limited to '')
-rw-r--r--src/ft_raycasting.c1
1 files changed, 1 insertions, 0 deletions
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)