From e29dd2fa3688e1e96a25af3b651da574af08aa90 Mon Sep 17 00:00:00 2001 From: Rudy Bousset Date: Thu, 13 Feb 2020 19:42:05 +0100 Subject: Splited structs --- src/ft_raycasting.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ft_raycasting.c') diff --git a/src/ft_raycasting.c b/src/ft_raycasting.c index 8aa4dbe..c0b55c4 100644 --- a/src/ft_raycasting.c +++ b/src/ft_raycasting.c @@ -21,10 +21,10 @@ ft_initray(t_cub *cl, uint16_t i) ft_detect(cl); if (cl->rlist.side == 0) cl->rlist.wall_dist = (cl->rlist.sqx - cl->rlist.x_ray_pos + - (1 - cl->x_step) / 2) / cl->rlist.x_ray_dir; + (1 - cl->mlist->x_step) / 2) / cl->rlist.x_ray_dir; else cl->rlist.wall_dist = (cl->rlist.sqy - cl->rlist.y_ray_pos + - (1 - cl->y_step) / 2) / cl->rlist.y_ray_dir; + (1 - cl->mlist->y_step) / 2) / cl->rlist.y_ray_dir; } void -- cgit v1.2.3