diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-19 21:59:13 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-19 21:59:13 +0100 |
commit | b135ba89ccceffa88356cc25f256b0cb2adbd88c (patch) | |
tree | 1e87c98d28857abfea2c5199dfdf77516ab28898 /src/ft_suffer_animation.c | |
parent | Rework in progress (diff) | |
download | 42-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.c | 12 |
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; } |