aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_tex_weap_init.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-22 19:05:12 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-22 19:05:12 +0100
commit7fbd59391bee9d23543ce933e91312e75276db8a (patch)
tree268db5130a3a62ce706cd8e222b6e47a61f2edb8 /src/ft_tex_weap_init.c
parentnew colors for font (diff)
download42-cub3d-7fbd59391bee9d23543ce933e91312e75276db8a.tar.gz
42-cub3d-7fbd59391bee9d23543ce933e91312e75276db8a.tar.bz2
42-cub3d-7fbd59391bee9d23543ce933e91312e75276db8a.tar.xz
42-cub3d-7fbd59391bee9d23543ce933e91312e75276db8a.tar.zst
42-cub3d-7fbd59391bee9d23543ce933e91312e75276db8a.zip
Now regimp and sound
Diffstat (limited to 'src/ft_tex_weap_init.c')
-rw-r--r--src/ft_tex_weap_init.c8
1 files changed, 8 insertions, 0 deletions
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);
}