From 31b823d11a48c7d425b0432a1a53a378bb5239f3 Mon Sep 17 00:00:00 2001 From: salaaad2 Date: Thu, 20 Feb 2020 03:37:05 +0100 Subject: :^)))))))))))))))))))))))))))) --- src/ft_raycasting.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/ft_raycasting.c') diff --git a/src/ft_raycasting.c b/src/ft_raycasting.c index 394d6dc..1ad16e1 100644 --- a/src/ft_raycasting.c +++ b/src/ft_raycasting.c @@ -13,6 +13,7 @@ #include #include #include +#include #include void @@ -33,6 +34,7 @@ void if (clist->rlist.side == 1 && clist->rlist.y_ray_dir < 0) clist->tlist[clist->w_side].tex_x = clist->tlist[clist->w_side].img_w - clist->tlist[clist->w_side].tex_x - 1; + printf("dir :%f\ntex_x : %d\n", clist->rlist.y_ray_dir, clist->tlist[clist->w_side].tex_x); } static void -- cgit v1.2.3