diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-19 16:39:26 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-19 16:39:26 +0100 |
commit | 39257df9e9c18665545464467a48d1ec26f094a9 (patch) | |
tree | 9f8d7c77cdbc583762a2964c568e70ca50e2d527 /src/ft_init_lists.c | |
parent | Added new sprite (diff) | |
download | 42-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 '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); } |