aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_damage_bad_boy.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-31 16:19:22 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-31 16:19:22 +0200
commit2ea18fb7e893691389108ae7731e26576715ca13 (patch)
treec6a4ccfb785ff7289279d6b08997939c36b4c9ca /src/ft_damage_bad_boy.c
parentGood (diff)
download42-cub3d-2ea18fb7e893691389108ae7731e26576715ca13.tar.gz
42-cub3d-2ea18fb7e893691389108ae7731e26576715ca13.tar.bz2
42-cub3d-2ea18fb7e893691389108ae7731e26576715ca13.tar.xz
42-cub3d-2ea18fb7e893691389108ae7731e26576715ca13.tar.zst
42-cub3d-2ea18fb7e893691389108ae7731e26576715ca13.zip
Alright sounds
Diffstat (limited to 'src/ft_damage_bad_boy.c')
-rw-r--r--src/ft_damage_bad_boy.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ft_damage_bad_boy.c b/src/ft_damage_bad_boy.c
index c9cb66c..27a41ad 100644
--- a/src/ft_damage_bad_boy.c
+++ b/src/ft_damage_bad_boy.c
@@ -42,5 +42,7 @@ void
cl->bad_boy[id].life -= FT_W_TWO_DANAGE_AMOUNT;
else if (cl->plist.handles_weapon == 4)
cl->bad_boy[id].life -= FT_W_THREE_DANAGE_AMOUNT;
- /* TODO: sfx enemy scream and death */
+ if (cl->bad_boy[id].does != 3)
+ cl->sfx[14].sfx_play(cl->sfx);
+ /* TODO: sfx enemy death */
}