diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-06 15:31:58 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-06 15:31:58 +0200 |
commit | 7359ab92230a7b4f05855de50f36aa4880901f3b (patch) | |
tree | c5de0e375f3f49d308950b24e199591dd8a2c1a8 /src/ft_find_item.c | |
parent | Tweak (diff) | |
download | 42-cub3d-7359ab92230a7b4f05855de50f36aa4880901f3b.tar.gz 42-cub3d-7359ab92230a7b4f05855de50f36aa4880901f3b.tar.bz2 42-cub3d-7359ab92230a7b4f05855de50f36aa4880901f3b.tar.xz 42-cub3d-7359ab92230a7b4f05855de50f36aa4880901f3b.tar.zst 42-cub3d-7359ab92230a7b4f05855de50f36aa4880901f3b.zip |
Better sound handling, few changes
Diffstat (limited to 'src/ft_find_item.c')
-rw-r--r-- | src/ft_find_item.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ft_find_item.c b/src/ft_find_item.c index f9504d1..1de7613 100644 --- a/src/ft_find_item.c +++ b/src/ft_find_item.c @@ -55,6 +55,11 @@ static void pl->ammo[1] += FT_WEAP_TWO_STRT_AMMO; else if (weap_id == 2) pl->ammo[2] += FT_WEAP_THREE_STRT_AMMO; + else if (weap_id == 3) + { + pl->ammo[2] += FT_AMMO_PACK; + weap_id = 2; + } if (pl->ammo[weap_id] > FT_WEAP_MAX_AMMO) pl->ammo[weap_id] = FT_WEAP_MAX_AMMO; } |