aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_select_bad_boy_action.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-04-02 14:35:55 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-04-02 14:35:55 +0200
commit20e9cfd5bf432b0e68b4e2fd3b721f1fcea8c839 (patch)
treeafea14915414c45325b9f0e4d8f64ee35935d101 /src/ft_select_bad_boy_action.c
parentCorrect dir_x dir_y sqy sqx (diff)
download42-cub3d-20e9cfd5bf432b0e68b4e2fd3b721f1fcea8c839.tar.gz
42-cub3d-20e9cfd5bf432b0e68b4e2fd3b721f1fcea8c839.tar.bz2
42-cub3d-20e9cfd5bf432b0e68b4e2fd3b721f1fcea8c839.tar.xz
42-cub3d-20e9cfd5bf432b0e68b4e2fd3b721f1fcea8c839.tar.zst
42-cub3d-20e9cfd5bf432b0e68b4e2fd3b721f1fcea8c839.zip
Correct ray dir
Diffstat (limited to '')
-rw-r--r--src/ft_select_bad_boy_action.c4
1 files changed, 2 insertions, 2 deletions
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);