From 906828fadb3e921523a62c52a01c6e2dc5a43eae Mon Sep 17 00:00:00 2001 From: Alug Date: Sun, 20 Oct 2024 19:42:56 +0200 Subject: [PATCH] remove useless code in S_StopChannel --- src/s_sound.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/s_sound.c b/src/s_sound.c index 8d699fdc0..d8d4e0893 100644 --- a/src/s_sound.c +++ b/src/s_sound.c @@ -898,7 +898,6 @@ void S_ClearSfx(void) static void S_StopChannel(INT32 cnum) { - INT32 i; channel_t *c = &channels[cnum]; if (c->sfxinfo) @@ -907,12 +906,6 @@ static void S_StopChannel(INT32 cnum) if (I_SoundIsPlaying(c->handle)) I_StopSound(c->handle); - // check to see - // if other channels are playing the sound - for (i = 0; i < numofchannels; i++) - if (cnum != i && c->sfxinfo == channels[i].sfxinfo) - break; - // degrade usefulness of sound data c->sfxinfo->usefulness--; c->sfxinfo = 0;