From f105354332c56deb23da7a24b038cc9ec50dbec0 Mon Sep 17 00:00:00 2001 From: Rudy Bousset Date: Thu, 14 May 2020 15:52:59 +0200 Subject: Cube VM adapted --- src/ft_sfx_pain.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/ft_sfx_pain.c') diff --git a/src/ft_sfx_pain.c b/src/ft_sfx_pain.c index d55c01c..ea46460 100644 --- a/src/ft_sfx_pain.c +++ b/src/ft_sfx_pain.c @@ -31,11 +31,12 @@ void ref = (ref > 201) ? (0) : (ref + 1); if (ref % 3) { - if (system(sfx[3].cmd)) - pthread_exit(NULL); + system(sfx[3].cmd); + } + else + { + system(sfx[3].cmd_alt); } - else if (system(sfx[3].cmd_alt)) - pthread_exit(NULL); } return (NULL); } -- cgit v1.2.3