diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-02 16:16:45 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-02 16:16:45 +0200 |
commit | f922d1ed3235e3ce61c4e74420ae31354eb829d9 (patch) | |
tree | faa1bea9c60dbbf79b91dded0ce9ef1afd552357 /src/ft_shoot.c | |
parent | Correct ray_pos (diff) | |
download | 42-cub3d-f922d1ed3235e3ce61c4e74420ae31354eb829d9.tar.gz 42-cub3d-f922d1ed3235e3ce61c4e74420ae31354eb829d9.tar.bz2 42-cub3d-f922d1ed3235e3ce61c4e74420ae31354eb829d9.tar.xz 42-cub3d-f922d1ed3235e3ce61c4e74420ae31354eb829d9.tar.zst 42-cub3d-f922d1ed3235e3ce61c4e74420ae31354eb829d9.zip |
Revert this if needed, still sprites and collision to do
Diffstat (limited to '')
-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 7336a80..ad5cfc8 100644 --- a/src/ft_shoot.c +++ b/src/ft_shoot.c @@ -104,8 +104,8 @@ void pl = &cl->plist; 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.y_ray_dir = -pl->dir_y; + 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); |