aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_find_item.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-19 21:59:13 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-19 21:59:13 +0100
commitb135ba89ccceffa88356cc25f256b0cb2adbd88c (patch)
tree1e87c98d28857abfea2c5199dfdf77516ab28898 /src/ft_find_item.c
parentRework in progress (diff)
download42-cub3d-b135ba89ccceffa88356cc25f256b0cb2adbd88c.tar.gz
42-cub3d-b135ba89ccceffa88356cc25f256b0cb2adbd88c.tar.bz2
42-cub3d-b135ba89ccceffa88356cc25f256b0cb2adbd88c.tar.xz
42-cub3d-b135ba89ccceffa88356cc25f256b0cb2adbd88c.tar.zst
42-cub3d-b135ba89ccceffa88356cc25f256b0cb2adbd88c.zip
The og OOP
Diffstat (limited to '')
-rw-r--r--src/ft_find_item.c4
1 files changed, 2 insertions, 2 deletions
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);
}