diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-14 17:45:51 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-14 17:45:51 +0200 |
commit | 329c93d7ed710dae24d560c7469acf12871a1363 (patch) | |
tree | 27a1841214cf359425548813cc1fe8c783515429 /src/ft_draw_handweap.c | |
parent | Reverting cave map (diff) | |
download | 42-cub3d-329c93d7ed710dae24d560c7469acf12871a1363.tar.gz 42-cub3d-329c93d7ed710dae24d560c7469acf12871a1363.tar.bz2 42-cub3d-329c93d7ed710dae24d560c7469acf12871a1363.tar.xz 42-cub3d-329c93d7ed710dae24d560c7469acf12871a1363.tar.zst 42-cub3d-329c93d7ed710dae24d560c7469acf12871a1363.zip |
Doing norminette
Diffstat (limited to 'src/ft_draw_handweap.c')
-rw-r--r-- | src/ft_draw_handweap.c | 6 |
1 files changed, 3 insertions, 3 deletions
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); } |