diff options
Diffstat (limited to 'src/ft_sfx_footstep.c')
-rw-r--r-- | src/ft_sfx_footstep.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/ft_sfx_footstep.c b/src/ft_sfx_footstep.c index 628660b..d8367c9 100644 --- a/src/ft_sfx_footstep.c +++ b/src/ft_sfx_footstep.c @@ -31,11 +31,12 @@ void pthread_mutex_lock(&sfx[1].mutex); if (ref % 2) { - if (system(sfx[1].cmd)) - pthread_exit(NULL); + system(sfx[1].cmd); + } + else + { + system(sfx[1].cmd_alt); } - else if (system(sfx[1].cmd_alt)) - pthread_exit(NULL); } return (NULL); } |