diff options
Diffstat (limited to 'src/ft_draw_verline.c')
-rw-r--r-- | src/ft_draw_verline.c | 1 |
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); |