aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_sfx_bb_death.c
diff options
context:
space:
mode:
authorRudy Bousset <bousset.rudy@gmail.com>2020-05-14 15:52:59 +0200
committerRudy Bousset <bousset.rudy@gmail.com>2020-05-14 15:52:59 +0200
commitf105354332c56deb23da7a24b038cc9ec50dbec0 (patch)
tree927733e21fd5664f58a3f8a913bee7fdd6e38843 /src/ft_sfx_bb_death.c
parentOk then (diff)
download42-cub3d-f105354332c56deb23da7a24b038cc9ec50dbec0.tar.gz
42-cub3d-f105354332c56deb23da7a24b038cc9ec50dbec0.tar.bz2
42-cub3d-f105354332c56deb23da7a24b038cc9ec50dbec0.tar.xz
42-cub3d-f105354332c56deb23da7a24b038cc9ec50dbec0.tar.zst
42-cub3d-f105354332c56deb23da7a24b038cc9ec50dbec0.zip
Cube VM adapted
Diffstat (limited to 'src/ft_sfx_bb_death.c')
-rw-r--r--src/ft_sfx_bb_death.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ft_sfx_bb_death.c b/src/ft_sfx_bb_death.c
index 23a96d8..a7ca6dc 100644
--- a/src/ft_sfx_bb_death.c
+++ b/src/ft_sfx_bb_death.c
@@ -28,8 +28,7 @@ void
while (1)
{
pthread_mutex_lock(&sfx[13].mutex);
- if (system(sfx[13].cmd))
- pthread_exit(NULL);
+ system(sfx[13].cmd);
}
return (NULL);
}