From 163bed0c8988ff020b746bf96dc01dd2058dc4f9 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Sun, 15 Mar 2020 15:09:59 +0100 Subject: Footsteps are bav --- src/ft_sfx_pain.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/ft_sfx_pain.c') diff --git a/src/ft_sfx_pain.c b/src/ft_sfx_pain.c index 962dcae..28bc95d 100644 --- a/src/ft_sfx_pain.c +++ b/src/ft_sfx_pain.c @@ -28,9 +28,7 @@ void pthread_mutex_lock(&sfx->pain_mutex); while (1) { - ref += 1; - if (ref > 201) - ref = 0; + ref = (ref > 201) ? (0) : (ref + 1); if (ref % 2) { pthread_mutex_lock(&sfx->pain_mutex); -- cgit v1.2.3