aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_sfx_pain.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/ft_sfx_pain.c4
1 files changed, 1 insertions, 3 deletions
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);