aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-19 16:39:26 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-19 16:39:26 +0100
commit39257df9e9c18665545464467a48d1ec26f094a9 (patch)
tree9f8d7c77cdbc583762a2964c568e70ca50e2d527 /src
parentAdded new sprite (diff)
download42-cub3d-39257df9e9c18665545464467a48d1ec26f094a9.tar.gz
42-cub3d-39257df9e9c18665545464467a48d1ec26f094a9.tar.bz2
42-cub3d-39257df9e9c18665545464467a48d1ec26f094a9.tar.xz
42-cub3d-39257df9e9c18665545464467a48d1ec26f094a9.tar.zst
42-cub3d-39257df9e9c18665545464467a48d1ec26f094a9.zip
Few changes
Diffstat (limited to '')
-rw-r--r--src/ft_init_lists.c11
-rw-r--r--src/ft_tex_weap_init.c1
2 files changed, 12 insertions, 0 deletions
diff --git a/src/ft_init_lists.c b/src/ft_init_lists.c
index 99ebd65..9b44114 100644
--- a/src/ft_init_lists.c
+++ b/src/ft_init_lists.c
@@ -27,6 +27,14 @@ t_rgb
return (rgb);
}
+/*
+** handles_weapon
+** --------------
+** -1: no weapon
+** 0: weapon one
+** 1: weapon two
+*/
+
t_player
ft_init_player(void)
{
@@ -43,6 +51,9 @@ t_player
plist.plane_x = 0;
plist.plane_y = 0.66;
plist.life = 100;
+ plist.has_weapon[0] = 0;
+ plist.has_weapon[1] = 0;
+ plist.handles_weapon = -1;
return (plist);
}
diff --git a/src/ft_tex_weap_init.c b/src/ft_tex_weap_init.c
index ac78de9..983da0b 100644
--- a/src/ft_tex_weap_init.c
+++ b/src/ft_tex_weap_init.c
@@ -18,6 +18,7 @@
/*
** tweap[] index summary
+** ---------------------
** 0: weapon one
** 1: weapon one fire
** 2: weapon two