From 8a695d62dcb9b8783918263f962b986df20310f2 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Thu, 2 Apr 2020 14:24:57 +0200 Subject: Correct dir_x dir_y sqy sqx --- src/ft_draw_textures.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ft_draw_textures.c') diff --git a/src/ft_draw_textures.c b/src/ft_draw_textures.c index 5bf0854..0f8bc43 100644 --- a/src/ft_draw_textures.c +++ b/src/ft_draw_textures.c @@ -46,8 +46,8 @@ void void ft_choose_tex(uint16_t x, t_cub *clist) { - if (clist->rlist.sqy == clist->mlist.nlx - && clist->rlist.sqx == clist->mlist.nly) + if (clist->rlist.sqx == clist->mlist.nlx + && clist->rlist.sqy == clist->mlist.nly) { clist->w_side = 5; } -- cgit v1.2.3