diff options
author | Rudy Bousset <rbousset@z2r4p3.le-101.fr> | 2020-02-17 20:49:12 +0100 |
---|---|---|
committer | Rudy Bousset <rbousset@z2r4p3.le-101.fr> | 2020-02-17 20:49:12 +0100 |
commit | aa092dbabd6b1e66b8b52e7ecfc897f7c23be37a (patch) | |
tree | 098ad2f761c5f8c67bfa99c1111639aa96b7c0eb /src/ft_draw_textures.c | |
parent | sex (diff) | |
parent | Read to merge (diff) | |
download | 42-cub3d-aa092dbabd6b1e66b8b52e7ecfc897f7c23be37a.tar.gz 42-cub3d-aa092dbabd6b1e66b8b52e7ecfc897f7c23be37a.tar.bz2 42-cub3d-aa092dbabd6b1e66b8b52e7ecfc897f7c23be37a.tar.xz 42-cub3d-aa092dbabd6b1e66b8b52e7ecfc897f7c23be37a.tar.zst 42-cub3d-aa092dbabd6b1e66b8b52e7ecfc897f7c23be37a.zip |
Merge branch 'textures_continued'
Diffstat (limited to 'src/ft_draw_textures.c')
-rw-r--r-- | src/ft_draw_textures.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ft_draw_textures.c b/src/ft_draw_textures.c index 5d02036..46e51d7 100644 --- a/src/ft_draw_textures.c +++ b/src/ft_draw_textures.c @@ -24,11 +24,11 @@ void ft_choose_tex(t_cub *clist) { if (clist->rlist.side == 0 && clist->rlist.x_ray_dir < 0) - clist->w_side = 0; - else if (clist->rlist.side == 0 && clist->rlist.x_ray_dir > 0) clist->w_side = 1; + else if (clist->rlist.side == 0 && clist->rlist.x_ray_dir > 0) + clist->w_side = 0; else if (clist->rlist.side == 1 && clist->rlist.y_ray_dir > 0) - clist->w_side = 2; - else clist->w_side = 3; + else + clist->w_side = 2; } |