From 39257df9e9c18665545464467a48d1ec26f094a9 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Thu, 19 Mar 2020 16:39:26 +0100 Subject: Few changes --- inc/cub3d_defines.h | 2 +- inc/cub3d_structs.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'inc') diff --git a/inc/cub3d_defines.h b/inc/cub3d_defines.h index 0d8c37f..c423ac7 100644 --- a/inc/cub3d_defines.h +++ b/inc/cub3d_defines.h @@ -100,7 +100,7 @@ enum # define FT_DEATH_SCREEN_PATH "./media/img/screens/death_screen.xpm" # define FT_HUD_BACK_PATH "./media/img/tex/plate_small.xpm" # define FT_WEAPON_ONE_SPR_PATH "./media/img/sprites/sword_s.xpm" -# define FT_WEAPON_TWO_SPR_PATH "./media/img/sprites/sword_s.xpm" +# define FT_WEAPON_TWO_SPR_PATH "./media/img/sprites/colt_s.xpm" # define FT_WEAPON_ONE_PATH "./media/img/weapons/sword_w.xpm" # define FT_WEAPON_ONE_FIRE_PATH "./media/img/weapons/sword_w_fire.xpm" # define FT_WEAPON_TWO_PATH "./media/img/weapons/sword_w.xpm" diff --git a/inc/cub3d_structs.h b/inc/cub3d_structs.h index 8e38e36..ba6243b 100644 --- a/inc/cub3d_structs.h +++ b/inc/cub3d_structs.h @@ -143,6 +143,8 @@ typedef struct s_player float plane_x; float plane_y; int8_t life; + uint8_t has_weapon[2]; + int8_t handles_weapon; } t_player; typedef struct s_ray -- cgit v1.2.3