diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-31 22:03:12 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-31 22:03:12 +0200 |
commit | 722840f6d9bdb604d2011822fded23f26b351a08 (patch) | |
tree | 174214d8b97d5fbbdcd46904edd5017f3423fec0 /src/ft_sfx_pain.c | |
parent | GOTY x 2 (diff) | |
download | 42-cub3d-722840f6d9bdb604d2011822fded23f26b351a08.tar.gz 42-cub3d-722840f6d9bdb604d2011822fded23f26b351a08.tar.bz2 42-cub3d-722840f6d9bdb604d2011822fded23f26b351a08.tar.xz 42-cub3d-722840f6d9bdb604d2011822fded23f26b351a08.tar.zst 42-cub3d-722840f6d9bdb604d2011822fded23f26b351a08.zip |
Player screams all the time
Diffstat (limited to 'src/ft_sfx_pain.c')
-rw-r--r-- | src/ft_sfx_pain.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/ft_sfx_pain.c b/src/ft_sfx_pain.c index d7ad5ef..2670b99 100644 --- a/src/ft_sfx_pain.c +++ b/src/ft_sfx_pain.c @@ -44,9 +44,5 @@ void void ft_sfx_pain(t_sfx *sfx) { - static uint8_t ref = 0; - - ref = (ref > 201) ? (0) : (ref + 1); - if (ref % 2) - pthread_mutex_unlock(&sfx[3].mutex); + pthread_mutex_unlock(&sfx[3].mutex); } |