aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_suffer_animation.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_suffer_animation.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 'src/ft_suffer_animation.c')
-rw-r--r--src/ft_suffer_animation.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/ft_suffer_animation.c b/src/ft_suffer_animation.c
index 9ee7882..6a325bc 100644
--- a/src/ft_suffer_animation.c
+++ b/src/ft_suffer_animation.c
@@ -40,13 +40,13 @@ void
if (cl->plist.life <= 0)
{
cl->isdead = 1;
- ft_sfx_death(cl);
+ cl->sfx[0].sfx_play(cl->sfx);
ft_death_screen(cl);
}
else
{
- ft_sfx_trap(cl);
- ft_sfx_pain(cl);
+ cl->sfx[4].sfx_play(cl->sfx);
+ cl->sfx[3].sfx_play(cl->sfx);
}
}
@@ -76,13 +76,13 @@ void
if (cl->plist.life <= 0)
{
cl->isdead = 1;
- ft_sfx_death(cl);
+ cl->sfx[0].sfx_play(cl->sfx);
ft_death_screen(cl);
}
else
{
- ft_sfx_trap(cl);
- ft_sfx_pain(cl);
+ cl->sfx[4].sfx_play(cl->sfx);
+ cl->sfx[3].sfx_play(cl->sfx);
}
cl->doicast = 0;
}