From e67e581b98e7487d86792cf24c333626ba2c9ffb Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Tue, 14 Apr 2020 17:53:00 +0200 Subject: More norm --- src/ft_draw_handweap.c | 2 +- src/ft_tex_weap_init.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ft_draw_handweap.c b/src/ft_draw_handweap.c index a2eabf3..7c982bc 100644 --- a/src/ft_draw_handweap.c +++ b/src/ft_draw_handweap.c @@ -75,7 +75,7 @@ static void cl->tweap[w_id].tex_x += move / 4; if (cl->tweap[w_id].ptr[cl->tweap[w_id].tex_x * 4 + 4 * cl->tweap[w_id].img_h * cl->tweap[w_id].tex_y]) - ft_put_weapon_image(w_id, y, x, cl); + ft_put_weapon_image(w_id, y, x, cl); x++; } y++; diff --git a/src/ft_tex_weap_init.c b/src/ft_tex_weap_init.c index 3425fb4..57717b7 100644 --- a/src/ft_tex_weap_init.c +++ b/src/ft_tex_weap_init.c @@ -48,7 +48,8 @@ void cl->tweap[4].ptr = mlx_get_data_addr(cl->tweap[4].img, &cl->tweap[4].bpp, &cl->tweap[4].sizeline, &cl->tweap[4].endian); cl->tweap[5].img = mlx_xpm_file_to_image(cl->wlist.wlx, - FT_WEAPON_THREE_FIRE_PATH, &cl->tweap[5].img_w, &cl->tweap[5].img_h); + FT_WEAPON_THREE_FIRE_PATH, + &cl->tweap[5].img_w, &cl->tweap[5].img_h); cl->tweap[5].ptr = mlx_get_data_addr(cl->tweap[5].img, &cl->tweap[5].bpp, &cl->tweap[5].sizeline, &cl->tweap[5].endian); } -- cgit v1.2.3