aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_sfx_pain.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-15 14:36:36 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-15 14:36:36 +0100
commit4fe3a87d3c09a22da49fb1f3e49e26751e7d4471 (patch)
tree805f28cc8b288b93ba9c979955365e6686cb8391 /src/ft_sfx_pain.c
parentSounds have been threaded (diff)
download42-cub3d-4fe3a87d3c09a22da49fb1f3e49e26751e7d4471.tar.gz
42-cub3d-4fe3a87d3c09a22da49fb1f3e49e26751e7d4471.tar.bz2
42-cub3d-4fe3a87d3c09a22da49fb1f3e49e26751e7d4471.tar.xz
42-cub3d-4fe3a87d3c09a22da49fb1f3e49e26751e7d4471.tar.zst
42-cub3d-4fe3a87d3c09a22da49fb1f3e49e26751e7d4471.zip
ok
Diffstat (limited to '')
-rw-r--r--src/ft_sfx_pain.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ft_sfx_pain.c b/src/ft_sfx_pain.c
index 780cb73..962dcae 100644
--- a/src/ft_sfx_pain.c
+++ b/src/ft_sfx_pain.c
@@ -31,9 +31,9 @@ void
ref += 1;
if (ref > 201)
ref = 0;
- pthread_mutex_lock(&sfx->pain_mutex);
if (ref % 2)
{
+ pthread_mutex_lock(&sfx->pain_mutex);
if (ref % 3)
system(sfx->pain_one);
else