aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_tex_weap_init.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ft_tex_weap_init.c')
-rw-r--r--src/ft_tex_weap_init.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/ft_tex_weap_init.c b/src/ft_tex_weap_init.c
index 983da0b..3425fb4 100644
--- a/src/ft_tex_weap_init.c
+++ b/src/ft_tex_weap_init.c
@@ -10,10 +10,7 @@
/* */
/* ************************************************************************** */
-#include <libft.h>
#include <cub3d.h>
-#include <stdint.h>
-#include <stdio.h>
#include <mlx.h>
/*
@@ -23,6 +20,8 @@
** 1: weapon one fire
** 2: weapon two
** 3: weapon two fire
+** 4: weapon three
+** 5: weapon three fire
*/
void
@@ -44,4 +43,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);
}