aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_init_lists.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-23 00:16:36 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-23 00:16:36 +0100
commit3ebd8ba2bd2302327932d877ef8b797793a67542 (patch)
tree0a45b7f6bf98eab0895d71ac85b29413ab707be3 /src/ft_init_lists.c
parentI think we good (diff)
download42-cub3d-3ebd8ba2bd2302327932d877ef8b797793a67542.tar.gz
42-cub3d-3ebd8ba2bd2302327932d877ef8b797793a67542.tar.bz2
42-cub3d-3ebd8ba2bd2302327932d877ef8b797793a67542.tar.xz
42-cub3d-3ebd8ba2bd2302327932d877ef8b797793a67542.tar.zst
42-cub3d-3ebd8ba2bd2302327932d877ef8b797793a67542.zip
Cool
Diffstat (limited to '')
-rw-r--r--src/ft_init_lists.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ft_init_lists.c b/src/ft_init_lists.c
index d9a2ad2..b551aab 100644
--- a/src/ft_init_lists.c
+++ b/src/ft_init_lists.c
@@ -33,7 +33,7 @@ t_rgb
** -1: no weapon
** 0: weapon one
** 2: weapon two
-** 4: weapon two
+** 4: weapon three
*/
t_player
@@ -55,6 +55,9 @@ t_player
plist.has_weapon[1] = 0;
plist.has_weapon[2] = 0;
plist.handles_weapon = -1;
+ plist.ammo[0] = 0;
+ plist.ammo[1] = 0;
+ plist.ammo[2] = 0;
plist.life = FT_STRT_LIFE;
plist.fire = 0;
return (plist);