aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-08 02:56:43 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-08 02:56:43 +0100
commit0f63325052958def69fb9ffdb6174b36f1ae0df9 (patch)
tree29086ae03ea126346f3545d4952afbea599cd9f0
parentI'm close af (diff)
download42-cub3d-0f63325052958def69fb9ffdb6174b36f1ae0df9.tar.gz
42-cub3d-0f63325052958def69fb9ffdb6174b36f1ae0df9.tar.bz2
42-cub3d-0f63325052958def69fb9ffdb6174b36f1ae0df9.tar.xz
42-cub3d-0f63325052958def69fb9ffdb6174b36f1ae0df9.tar.zst
42-cub3d-0f63325052958def69fb9ffdb6174b36f1ae0df9.zip
Norme iksde
Diffstat (limited to '')
-rw-r--r--src/ft_draw_verline.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ft_draw_verline.c b/src/ft_draw_verline.c
index b7084cc..3728996 100644
--- a/src/ft_draw_verline.c
+++ b/src/ft_draw_verline.c
@@ -52,8 +52,10 @@ static void
* cl->tlist[6].img_w) % cl->tlist[6].img_w;
cl->tlist[6].tex_y = (int32_t)(curr_floor_y
* cl->tlist[6].img_h) % cl->tlist[6].img_h;
- cl->tlist[6].tex_x = (cl->tlist[6].tex_x > 0) ? (cl->tlist[6].tex_x) : (-cl->tlist[6].tex_x);
- cl->tlist[6].tex_y = (cl->tlist[6].tex_y > 0) ? (cl->tlist[6].tex_y) : (-cl->tlist[6].tex_y);
+ cl->tlist[6].tex_x = (cl->tlist[6].tex_x > 0)
+ ? (cl->tlist[6].tex_x) : (-cl->tlist[6].tex_x);
+ cl->tlist[6].tex_y = (cl->tlist[6].tex_y > 0)
+ ? (cl->tlist[6].tex_y) : (-cl->tlist[6].tex_y);
ft_draw_floor_tex(cl, y, x, cl->tlist[6].tex_y);
/* *(int*)(cl->img.ptr + */
/* (x * 4 + (y * cl->img.sizeline))) */