aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_draw_verline.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ft_draw_verline.c')
-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))) */