aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_tex_init.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/ft_tex_init.c5
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);