From 722840f6d9bdb604d2011822fded23f26b351a08 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Tue, 31 Mar 2020 22:03:12 +0200 Subject: Player screams all the time --- src/ft_sfx_pain.c | 6 +----- 1 file changed, 1 insertion(+), 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); } -- cgit v1.2.3