diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-22 19:05:12 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-22 19:05:12 +0100 |
commit | 7fbd59391bee9d23543ce933e91312e75276db8a (patch) | |
tree | 268db5130a3a62ce706cd8e222b6e47a61f2edb8 /src/ft_tex_init.c | |
parent | new colors for font (diff) | |
download | 42-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 '')
-rw-r--r-- | src/ft_tex_init.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ft_tex_init.c b/src/ft_tex_init.c index 89a4d77..effe6a1 100644 --- a/src/ft_tex_init.c +++ b/src/ft_tex_init.c @@ -38,6 +38,7 @@ ** 17: heal pack ** 18: weapon one sprite ** 19: weapon two sprite +** 20: weapon two sprite */ static void @@ -73,6 +74,10 @@ static void FT_WEAPON_TWO_SPR_PATH, &cl->tlist[19].img_w, &cl->tlist[19].img_h); cl->tlist[19].ptr = mlx_get_data_addr(cl->tlist[19].img, &cl->tlist[19].bpp, &cl->tlist[19].sizeline, &cl->tlist[19].endian); + cl->tlist[20].img = mlx_xpm_file_to_image(cl->wlist.wlx, + FT_WEAPON_THREE_SPR_PATH, &cl->tlist[20].img_w, &cl->tlist[20].img_h); + cl->tlist[20].ptr = mlx_get_data_addr(cl->tlist[20].img, + &cl->tlist[20].bpp, &cl->tlist[20].sizeline, &cl->tlist[20].endian); cl->walltexgood = 1; if (cl->mlist.sprite_var > 1) ft_next_sprite_init(cl); |