From 314a8e07226d1f4c9d9537371963c233d781ac08 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Mon, 23 Mar 2020 16:49:30 +0100 Subject: sfx: good --- src/ft_extra_keys.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/ft_extra_keys.c') 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); } -- cgit v1.2.3