diff options
Diffstat (limited to '')
-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); } |