From 05ad2085ab6ce4ffb280b21ce3f321b2bd75aa9e Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Tue, 17 Mar 2020 17:15:32 +0100 Subject: fps counter is bav --- src/ft_sfx_death.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/ft_sfx_death.c') 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); } -- cgit v1.2.3