diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-17 17:15:32 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-17 17:15:32 +0100 |
commit | 05ad2085ab6ce4ffb280b21ce3f321b2bd75aa9e (patch) | |
tree | c6c521c8f2ad8df4477005b8225427b7459daf32 /src/ft_sfx_death.c | |
parent | Merge branch 'back-to-pthread' (diff) | |
download | 42-cub3d-05ad2085ab6ce4ffb280b21ce3f321b2bd75aa9e.tar.gz 42-cub3d-05ad2085ab6ce4ffb280b21ce3f321b2bd75aa9e.tar.bz2 42-cub3d-05ad2085ab6ce4ffb280b21ce3f321b2bd75aa9e.tar.xz 42-cub3d-05ad2085ab6ce4ffb280b21ce3f321b2bd75aa9e.tar.zst 42-cub3d-05ad2085ab6ce4ffb280b21ce3f321b2bd75aa9e.zip |
fps counter is bav
Diffstat (limited to 'src/ft_sfx_death.c')
-rw-r--r-- | src/ft_sfx_death.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ft_sfx_death.c b/src/ft_sfx_death.c index 1680f2d..32ad6fe 100644 --- a/src/ft_sfx_death.c +++ b/src/ft_sfx_death.c @@ -28,7 +28,8 @@ void while (1) { pthread_mutex_lock(&sfx->death_mutex); - system(sfx->death); + if (system(sfx->death)) + pthread_exit(NULL); } return (NULL); } |