From 20e9cfd5bf432b0e68b4e2fd3b721f1fcea8c839 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Thu, 2 Apr 2020 14:35:55 +0200 Subject: Correct ray dir --- src/ft_select_bad_boy_action.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ft_select_bad_boy_action.c') diff --git a/src/ft_select_bad_boy_action.c b/src/ft_select_bad_boy_action.c index f0ce7e7..8fb38c6 100644 --- a/src/ft_select_bad_boy_action.c +++ b/src/ft_select_bad_boy_action.c @@ -93,8 +93,8 @@ int8_t hit = 0; cl->rlist.x_ray_pos = cl->plist.pos_y; cl->rlist.y_ray_pos = cl->plist.pos_x; - cl->rlist.x_ray_dir = pl->dir_y; - cl->rlist.y_ray_dir = pl->dir_x; + cl->rlist.y_ray_dir = pl->dir_y; + cl->rlist.x_ray_dir = pl->dir_x; cl->rlist.sqy = (uint64_t)cl->rlist.x_ray_pos; cl->rlist.sqx = (uint64_t)cl->rlist.y_ray_pos; ft_detection_init_x(cl); -- cgit v1.2.3