diff options
author | salaaad2 <arthurdurant263@gmail.com> | 2020-02-17 20:25:16 +0100 |
---|---|---|
committer | salaaad2 <arthurdurant263@gmail.com> | 2020-02-17 20:25:16 +0100 |
commit | 79993a44dcd7a3428a2b09065e33f0fbc6bb69fc (patch) | |
tree | f83eab9ac53c0c5d6feab9f83cf215da95b01adc /src/ft_draw_textures.c | |
parent | have correct width and hit zone, supposedly not much left (diff) | |
download | 42-cub3d-79993a44dcd7a3428a2b09065e33f0fbc6bb69fc.tar.gz 42-cub3d-79993a44dcd7a3428a2b09065e33f0fbc6bb69fc.tar.bz2 42-cub3d-79993a44dcd7a3428a2b09065e33f0fbc6bb69fc.tar.xz 42-cub3d-79993a44dcd7a3428a2b09065e33f0fbc6bb69fc.tar.zst 42-cub3d-79993a44dcd7a3428a2b09065e33f0fbc6bb69fc.zip |
some things
Diffstat (limited to '')
-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; } |