From 7fbd59391bee9d23543ce933e91312e75276db8a Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Sun, 22 Mar 2020 19:05:12 +0100 Subject: Now regimp and sound --- src/ft_tex_weap_init.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/ft_tex_weap_init.c') diff --git a/src/ft_tex_weap_init.c b/src/ft_tex_weap_init.c index d0bf835..ab8ed53 100644 --- a/src/ft_tex_weap_init.c +++ b/src/ft_tex_weap_init.c @@ -41,4 +41,12 @@ void FT_WEAPON_TWO_FIRE_PATH, &cl->tweap[3].img_w, &cl->tweap[3].img_h); cl->tweap[3].ptr = mlx_get_data_addr(cl->tweap[3].img, &cl->tweap[3].bpp, &cl->tweap[3].sizeline, &cl->tweap[3].endian); + cl->tweap[4].img = mlx_xpm_file_to_image(cl->wlist.wlx, + FT_WEAPON_THREE_PATH, &cl->tweap[4].img_w, &cl->tweap[4].img_h); + 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); + 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