From b135ba89ccceffa88356cc25f256b0cb2adbd88c Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Thu, 19 Mar 2020 21:59:13 +0100 Subject: The og OOP --- src/ft_find_item.c | 4 ++-- 1 file changed, 2 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 7332e19..b55e9d9 100644 --- a/src/ft_find_item.c +++ b/src/ft_find_item.c @@ -42,7 +42,7 @@ static void cl->weaps[weap_id][0].s_pos_y = 0; pl->has_weapon[weap_id] = 1; pl->handles_weapon = (weap_id == 1) ? (2) : (weap_id); - /* TODO: ft_sfx_weapon(3) */ + cl->sfx[((weap_id == 1) ? (2) : (weap_id)) + 6].sfx_play(cl->sfx); } } @@ -63,7 +63,7 @@ void (uint64_t)pl->pos_x, cl); cl->heals[id].s_pos_x = 0; cl->heals[id].s_pos_y = 0; - /* TODO: ft_sfx_heal(3) */ + cl->sfx[5].sfx_play(cl->sfx); } ft_weapon_check(map_char, pl, cl); } -- cgit v1.2.3