aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_sfx_pain.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-31 22:03:12 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-31 22:03:12 +0200
commit722840f6d9bdb604d2011822fded23f26b351a08 (patch)
tree174214d8b97d5fbbdcd46904edd5017f3423fec0 /src/ft_sfx_pain.c
parentGOTY x 2 (diff)
download42-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.c6
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);
}