aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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