aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_find_item.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ft_find_item.c')
-rw-r--r--src/ft_find_item.c5
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;
}