From 329c93d7ed710dae24d560c7469acf12871a1363 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Tue, 14 Apr 2020 17:45:51 +0200 Subject: Doing norminette --- src/ft_draw_handweap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/ft_draw_handweap.c') diff --git a/src/ft_draw_handweap.c b/src/ft_draw_handweap.c index 42e7bfd..a2eabf3 100644 --- a/src/ft_draw_handweap.c +++ b/src/ft_draw_handweap.c @@ -17,13 +17,13 @@ static void ft_put_weapon_image(int8_t w_id, int16_t y, int16_t x, t_cub *cl) { *(cl->img.ptr + x * 4 + (cl->img.sizeline * y)) = - (uint8_t)*(cl->tweap[w_id].ptr + cl->tweap[w_id].tex_x * 4 + 4 * + *(cl->tweap[w_id].ptr + cl->tweap[w_id].tex_x * 4 + 4 * cl->tweap[w_id].img_w * cl->tweap[w_id].tex_y); *(cl->img.ptr + x * 4 + (cl->img.sizeline * y) + 1) = - (uint8_t)*(cl->tweap[w_id].ptr + cl->tweap[w_id].tex_x * 4 + 4 * + *(cl->tweap[w_id].ptr + cl->tweap[w_id].tex_x * 4 + 4 * cl->tweap[w_id].img_w * cl->tweap[w_id].tex_y + 1); *(cl->img.ptr + x * 4 + (cl->img.sizeline * y) + 2) = - (uint8_t)*(cl->tweap[w_id].ptr + cl->tweap[w_id].tex_x * 4 + 4 * + *(cl->tweap[w_id].ptr + cl->tweap[w_id].tex_x * 4 + 4 * cl->tweap[w_id].img_w * cl->tweap[w_id].tex_y + 2); } -- cgit v1.2.3