diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-03 15:32:49 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-03 15:32:49 +0200 |
commit | 7b984dda8189b3e74e2da998b955b33466ff6b4e (patch) | |
tree | b96d715e2583324bfa26808a02dfaf9839a0e1a7 /src/ft_shoot.c | |
parent | Sprites fixed, shoot to fix (diff) | |
download | 42-cub3d-7b984dda8189b3e74e2da998b955b33466ff6b4e.tar.gz 42-cub3d-7b984dda8189b3e74e2da998b955b33466ff6b4e.tar.bz2 42-cub3d-7b984dda8189b3e74e2da998b955b33466ff6b4e.tar.xz 42-cub3d-7b984dda8189b3e74e2da998b955b33466ff6b4e.tar.zst 42-cub3d-7b984dda8189b3e74e2da998b955b33466ff6b4e.zip |
Shooting fixed, now bad boys view
Diffstat (limited to 'src/ft_shoot.c')
-rw-r--r-- | src/ft_shoot.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |