diff options
Diffstat (limited to 'src/ft_init_lists.c')
-rw-r--r-- | src/ft_init_lists.c | 11 |
1 files changed, 11 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); } |