diff options
author | Rudy Bousset <rbousset@z2r4p3.le-101.fr> | 2020-02-17 16:54:55 +0100 |
---|---|---|
committer | Rudy Bousset <rbousset@z2r4p3.le-101.fr> | 2020-02-17 16:54:55 +0100 |
commit | d4f37d1afee5b22213b0841ed20cb2f74e027d1b (patch) | |
tree | 12c8bd60455f61a6db7429c323124cd63668e85b /src/ft_raycasting.c | |
parent | Solved HEAD conflicts (diff) | |
download | 42-cub3d-d4f37d1afee5b22213b0841ed20cb2f74e027d1b.tar.gz 42-cub3d-d4f37d1afee5b22213b0841ed20cb2f74e027d1b.tar.bz2 42-cub3d-d4f37d1afee5b22213b0841ed20cb2f74e027d1b.tar.xz 42-cub3d-d4f37d1afee5b22213b0841ed20cb2f74e027d1b.tar.zst 42-cub3d-d4f37d1afee5b22213b0841ed20cb2f74e027d1b.zip |
Norme
Diffstat (limited to '')
-rw-r--r-- | src/ft_raycasting.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ft_raycasting.c b/src/ft_raycasting.c index 90f6d88..98f1c81 100644 --- a/src/ft_raycasting.c +++ b/src/ft_raycasting.c @@ -18,9 +18,11 @@ void ft_calc_tex(t_cub *clist) { if (clist->rlist.side == 1) - clist->rlist.wall_hit_x = clist->plist->pos_y + clist->rlist.wall_dist * clist->rlist.y_ray_dir; + clist->rlist.wall_hit_x = clist->plist->pos_y + + clist->rlist.wall_dist * clist->rlist.y_ray_dir; else - clist->rlist.wall_hit_x = clist->plist->pos_x + clist->rlist.wall_dist * clist->rlist.x_ray_dir; + clist->rlist.wall_hit_x = clist->plist->pos_x + + clist->rlist.wall_dist * clist->rlist.x_ray_dir; } static void |