aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-04-24 14:32:54 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-04-24 14:32:54 +0200
commita5b533ba1fcddac0570444c40af267830b1e78f4 (patch)
tree8469cb4c4af2898395d2e0ae62285c46bafadd92 /src
parentTry that (diff)
download42-cub3d-a5b533ba1fcddac0570444c40af267830b1e78f4.tar.gz
42-cub3d-a5b533ba1fcddac0570444c40af267830b1e78f4.tar.bz2
42-cub3d-a5b533ba1fcddac0570444c40af267830b1e78f4.tar.xz
42-cub3d-a5b533ba1fcddac0570444c40af267830b1e78f4.tar.zst
42-cub3d-a5b533ba1fcddac0570444c40af267830b1e78f4.zip
Better try that
Diffstat (limited to 'src')
-rw-r--r--src/ft_exit.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/ft_exit.c b/src/ft_exit.c
index 1d35ea1..0fcc9dc 100644
--- a/src/ft_exit.c
+++ b/src/ft_exit.c
@@ -46,16 +46,14 @@ static void
if (clist->isoldmus && clist->wlist.inited)
{
- if (system(FT_SND_TERM_CMD))
- return ;
+ system(FT_SND_TERM_CMD);
}
i = -1;
while (++i < FT_TOTAL_SFX)
{
pthread_mutex_unlock(&clist->sfx[i].mutex);
+ system(FT_SND_TERM_CMD);
}
- if (system(FT_SND_TERM_CMD))
- return ;
}
int