From 0f63325052958def69fb9ffdb6174b36f1ae0df9 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Sun, 8 Mar 2020 02:56:43 +0100 Subject: Norme iksde --- src/ft_draw_verline.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') 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))) */ -- cgit v1.2.3