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_new_level.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/ft_sfx_new_level.c') diff --git a/src/ft_sfx_new_level.c b/src/ft_sfx_new_level.c index ec648e0..2cde15c 100644 --- a/src/ft_sfx_new_level.c +++ b/src/ft_sfx_new_level.c @@ -28,7 +28,8 @@ void while (1) { pthread_mutex_lock(&sfx->new_lvl_mutex); - system(sfx->new_lvl); + if (system(sfx->new_lvl)) + pthread_exit(NULL); } return (NULL); } -- cgit v1.2.3