aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_draw_verline.c
diff options
context:
space:
mode:
authorRudy Bousset <rbousset@z2r5p6.le-101.fr>2020-03-08 16:48:40 +0100
committerRudy Bousset <rbousset@z2r5p6.le-101.fr>2020-03-08 16:48:40 +0100
commit5068210318c574eb40715eb0f87d84230b9393df (patch)
treefcfcb6a4764b99c8cc3c6c7683ed7eb9c5a11691 /src/ft_draw_verline.c
parentRemoved bloat (diff)
download42-cub3d-5068210318c574eb40715eb0f87d84230b9393df.tar.gz
42-cub3d-5068210318c574eb40715eb0f87d84230b9393df.tar.bz2
42-cub3d-5068210318c574eb40715eb0f87d84230b9393df.tar.xz
42-cub3d-5068210318c574eb40715eb0f87d84230b9393df.tar.zst
42-cub3d-5068210318c574eb40715eb0f87d84230b9393df.zip
At least it compiles
Diffstat (limited to '')
-rw-r--r--src/ft_draw_verline.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ft_draw_verline.c b/src/ft_draw_verline.c
index 3d0fea3..dd7697a 100644
--- a/src/ft_draw_verline.c
+++ b/src/ft_draw_verline.c
@@ -40,6 +40,7 @@ static void
dist_player = 0.0;
while ((uint32_t)y < cl->wlist.y_size)
{
+ ft_floor_cast(cl);
curr_dist = cl->wlist.y_size / (2.0 * y - cl->wlist.y_size);
weight = (curr_dist - dist_player)
/ (cl->rlist.wall_dist - dist_player);