From f922d1ed3235e3ce61c4e74420ae31354eb829d9 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Thu, 2 Apr 2020 16:16:45 +0200 Subject: Revert this if needed, still sprites and collision to do --- src/ft_castray_loop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ft_castray_loop.c') diff --git a/src/ft_castray_loop.c b/src/ft_castray_loop.c index 167ee1d..00cb589 100644 --- a/src/ft_castray_loop.c +++ b/src/ft_castray_loop.c @@ -47,7 +47,7 @@ void pl->cam_x = 2 * i / (float)(wl->x_size) - 1; cl->rlist.y_ray_pos = pl->pos_y; cl->rlist.x_ray_pos = pl->pos_x; - cl->rlist.y_ray_dir = pl->dir_y + pl->plane_x * + cl->rlist.y_ray_dir = -pl->dir_y + pl->plane_x * pl->cam_x; cl->rlist.x_ray_dir = pl->dir_x + pl->plane_y * pl->cam_x; -- cgit v1.2.3