diff options
Diffstat (limited to 'src/ft_raycasting.c')
-rw-r--r-- | src/ft_raycasting.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 |