aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_init_sfx.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-13 04:54:43 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-13 04:54:43 +0100
commit2ad0774ca20e56a4c64cd1fa6531739c701a61ed (patch)
tree6d1322eab2e85e3f926841b0b8aef2c73ecdbc1c /src/ft_init_sfx.c
parentStill bug on death (diff)
download42-cub3d-2ad0774ca20e56a4c64cd1fa6531739c701a61ed.tar.gz
42-cub3d-2ad0774ca20e56a4c64cd1fa6531739c701a61ed.tar.bz2
42-cub3d-2ad0774ca20e56a4c64cd1fa6531739c701a61ed.tar.xz
42-cub3d-2ad0774ca20e56a4c64cd1fa6531739c701a61ed.tar.zst
42-cub3d-2ad0774ca20e56a4c64cd1fa6531739c701a61ed.zip
I fucking love it
Diffstat (limited to 'src/ft_init_sfx.c')
-rw-r--r--src/ft_init_sfx.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ft_init_sfx.c b/src/ft_init_sfx.c
index 1452b5c..2aed165 100644
--- a/src/ft_init_sfx.c
+++ b/src/ft_init_sfx.c
@@ -41,7 +41,9 @@ int8_t
ft_init_sfx(t_sfx *sfx)
{
if (ft_split_sfx(&sfx->death, FT_SFX_DEATH_PATH) < 0 ||
- ft_split_sfx(&sfx->trap, FT_SFX_TRAP_PATH) < 0)
+ ft_split_sfx(&sfx->trap, FT_SFX_TRAP_PATH) < 0 ||
+ ft_split_sfx(&sfx->pain_one, FT_SFX_SCR_ONE_PATH) < 0 ||
+ ft_split_sfx(&sfx->pain_two, FT_SFX_SCR_TWO_PATH) < 0)
return (-1);
return (0);
}