diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-02 14:35:55 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-02 14:35:55 +0200 |
commit | 20e9cfd5bf432b0e68b4e2fd3b721f1fcea8c839 (patch) | |
tree | afea14915414c45325b9f0e4d8f64ee35935d101 /src/ft_shoot.c | |
parent | Correct dir_x dir_y sqy sqx (diff) | |
download | 42-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 'src/ft_shoot.c')
-rw-r--r-- | src/ft_shoot.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ft_shoot.c b/src/ft_shoot.c index 248ea6e..29f5066 100644 --- a/src/ft_shoot.c +++ b/src/ft_shoot.c @@ -104,8 +104,8 @@ void pl = &cl->plist; cl->rlist.x_ray_pos = pl->pos_y; cl->rlist.y_ray_pos = pl->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); |