From 953381e5c1c9ebecc2f43ae0065b0cb381a85cb0 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Sun, 22 Mar 2020 19:22:34 +0100 Subject: Bug fixes, now gimp and sound --- src/ft_find_item.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/ft_find_item.c') diff --git a/src/ft_find_item.c b/src/ft_find_item.c index c95fa0a..caeb3f4 100644 --- a/src/ft_find_item.c +++ b/src/ft_find_item.c @@ -45,8 +45,9 @@ static void cl->weaps[weap_id][0].s_pos_x = 0; cl->weaps[weap_id][0].s_pos_y = 0; pl->has_weapon[weap_id] = 1; - pl->handles_weapon = (weap_id == 1) ? (2) : (weap_id); - pl->handles_weapon = (weap_id == 2) ? (4) : (weap_id); + pl->handles_weapon = (weap_id == 0) ? (0) : (pl->handles_weapon); + pl->handles_weapon = (weap_id == 1) ? (2) : (pl->handles_weapon); + pl->handles_weapon = (weap_id == 2) ? (4) : (pl->handles_weapon); if (weap_id == 0) cl->sfx[6].sfx_play(cl->sfx); else if (weap_id == 1) -- cgit v1.2.3