From 7b984dda8189b3e74e2da998b955b33466ff6b4e Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Fri, 3 Apr 2020 15:32:49 +0200 Subject: Shooting fixed, now bad boys view --- src/ft_shoot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ft_shoot.c b/src/ft_shoot.c index ad5cfc8..dbd8862 100644 --- a/src/ft_shoot.c +++ b/src/ft_shoot.c @@ -105,7 +105,7 @@ void cl->rlist.y_ray_pos = pl->pos_y; cl->rlist.x_ray_pos = pl->pos_x; cl->rlist.y_ray_dir = -pl->dir_y; - cl->rlist.x_ray_dir = -pl->dir_x; + cl->rlist.x_ray_dir = pl->dir_x; cl->rlist.sqy = (uint64_t)cl->rlist.y_ray_pos; cl->rlist.sqx = (uint64_t)cl->rlist.x_ray_pos; ft_detection_init_x(cl); -- cgit v1.2.3