diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ft_detect.c | 2 | ||||
-rw-r--r-- | src/ft_draw_verline.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/ft_detect.c b/src/ft_detect.c index cbd8c58..42ecb3f 100644 --- a/src/ft_detect.c +++ b/src/ft_detect.c @@ -74,7 +74,7 @@ void cl->rlist.sqy += cl->mlist.y_step; cl->rlist.side = 1; } - if (ft_ischarset("1LD", cl->mlist.map[cl->rlist.sqx][cl->rlist.sqy])) + if (ft_ischarset(FT_CHRST_DETECT, cl->mlist.map[cl->rlist.sqx][cl->rlist.sqy])) cl->rlist.hit = 1; } } diff --git a/src/ft_draw_verline.c b/src/ft_draw_verline.c index dd7697a..9abb73f 100644 --- a/src/ft_draw_verline.c +++ b/src/ft_draw_verline.c @@ -28,6 +28,7 @@ static void cl->img.ptr[x * 4 + cl->wlist.x_size * y + 3] = (int8_t)0; } +#include <stdio.h> static void ft_draw_floor(t_cub *cl, int32_t y, int32_t x) { @@ -56,6 +57,7 @@ static void ? (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); + /* printf("tex_x %d | tex_y %d\n", cl->tlist[6].tex_x, 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))) */ |