diff options
Diffstat (limited to 'src/ft_extra_keys.c')
-rw-r--r-- | src/ft_extra_keys.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ft_extra_keys.c b/src/ft_extra_keys.c index 097e2e2..0ccf3fc 100644 --- a/src/ft_extra_keys.c +++ b/src/ft_extra_keys.c @@ -82,6 +82,9 @@ int clist->plist.ammo[w_id] -= w_id; clist->sfx[clist->plist.handles_weapon + 7].sfx_play(clist->sfx); clist->plist.fire = 1; + return (0); } + else if (clist->plist.fire == 0 && clist->plist.ammo[w_id] <= 0) + clist->sfx[12].sfx_play(clist->sfx); return (0); } |