diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-14 17:53:00 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-14 17:53:00 +0200 |
commit | e67e581b98e7487d86792cf24c333626ba2c9ffb (patch) | |
tree | cf3ba3ec88e26d95ce8ca4319efea6941795e800 | |
parent | Normed this (diff) | |
download | 42-cub3d-e67e581b98e7487d86792cf24c333626ba2c9ffb.tar.gz 42-cub3d-e67e581b98e7487d86792cf24c333626ba2c9ffb.tar.bz2 42-cub3d-e67e581b98e7487d86792cf24c333626ba2c9ffb.tar.xz 42-cub3d-e67e581b98e7487d86792cf24c333626ba2c9ffb.tar.zst 42-cub3d-e67e581b98e7487d86792cf24c333626ba2c9ffb.zip |
More norm
-rw-r--r-- | src/ft_draw_handweap.c | 2 | ||||
-rw-r--r-- | 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); } |