diff options
author | Rudy Bousset <bousset.rudy@gmail.com> | 2020-05-14 15:52:59 +0200 |
---|---|---|
committer | Rudy Bousset <bousset.rudy@gmail.com> | 2020-05-14 15:52:59 +0200 |
commit | f105354332c56deb23da7a24b038cc9ec50dbec0 (patch) | |
tree | 927733e21fd5664f58a3f8a913bee7fdd6e38843 /src/ft_sfx_footstep.c | |
parent | Ok then (diff) | |
download | 42-cub3d-f105354332c56deb23da7a24b038cc9ec50dbec0.tar.gz 42-cub3d-f105354332c56deb23da7a24b038cc9ec50dbec0.tar.bz2 42-cub3d-f105354332c56deb23da7a24b038cc9ec50dbec0.tar.xz 42-cub3d-f105354332c56deb23da7a24b038cc9ec50dbec0.tar.zst 42-cub3d-f105354332c56deb23da7a24b038cc9ec50dbec0.zip |
Cube VM adapted
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); } |