diff options
author | Rudy Bousset <rbousset@z2r4p1.le-101.fr> | 2020-03-08 19:14:51 +0100 |
---|---|---|
committer | Rudy Bousset <rbousset@z2r4p1.le-101.fr> | 2020-03-08 19:14:51 +0100 |
commit | ab50e31ddbe77885bc2a517dfd239f88077ad77c (patch) | |
tree | e75334543161f6500e1d3d2ebe6ef3489fdcda44 /src/ft_raycasting.c | |
parent | Jimi Hendrix would be proud (diff) | |
download | 42-cub3d-ab50e31ddbe77885bc2a517dfd239f88077ad77c.tar.gz 42-cub3d-ab50e31ddbe77885bc2a517dfd239f88077ad77c.tar.bz2 42-cub3d-ab50e31ddbe77885bc2a517dfd239f88077ad77c.tar.xz 42-cub3d-ab50e31ddbe77885bc2a517dfd239f88077ad77c.tar.zst 42-cub3d-ab50e31ddbe77885bc2a517dfd239f88077ad77c.zip |
Something wrong
Diffstat (limited to 'src/ft_raycasting.c')
-rw-r--r-- | src/ft_raycasting.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/ft_raycasting.c b/src/ft_raycasting.c index 121e132..0a4b8b5 100644 --- a/src/ft_raycasting.c +++ b/src/ft_raycasting.c @@ -74,12 +74,6 @@ void else if (clist->rlist.side == 1 && clist->rlist.y_ray_dir < 0) clist->tlist[clist->w_side].tex_x = clist->tlist[clist->w_side].img_w - clist->tlist[clist->w_side].tex_x - 1; - if (clist->rlist.side == 0) - clist->rlist.perp_wall_dist = ((uint32_t)clist->plist.pos_x - - clist->plist.pos_x + (1 - clist->mlist.x_step) / 2) / clist->rlist.x_ray_dir; - else - clist->rlist.perp_wall_dist = ((uint32_t)clist->plist.pos_y - - clist->plist.pos_y + (1 - clist->mlist.y_step) / 2) / clist->rlist.y_ray_dir; } static void |