From fe7e9ec266c10c004974c141fc4796022ad9c409 Mon Sep 17 00:00:00 2001
From: James R <justsomejames2@gmail.com>
Date: Sun, 25 Sep 2022 04:39:42 -0700
Subject: [PATCH] Let S_StopSound, S_StopSoundByID, S_StopSoundByNum stop
 multiple sounds

Previously stopped only one, probably the first that
started playing.
---
 src/s_sound.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/src/s_sound.c b/src/s_sound.c
index ebd6d2de6..d80fa1ca9 100644
--- a/src/s_sound.c
+++ b/src/s_sound.c
@@ -398,7 +398,6 @@ void S_StopSoundByID(void *origin, sfxenum_t sfx_id)
 		if (channels[cnum].sfxinfo == &S_sfx[sfx_id] && channels[cnum].origin == origin)
 		{
 			S_StopChannel(cnum);
-			break;
 		}
 	}
 }
@@ -419,7 +418,6 @@ void S_StopSoundByNum(sfxenum_t sfxnum)
 		if (channels[cnum].sfxinfo == &S_sfx[sfxnum])
 		{
 			S_StopChannel(cnum);
-			break;
 		}
 	}
 }
@@ -718,7 +716,6 @@ void S_StopSound(void *origin)
 		if (channels[cnum].sfxinfo && channels[cnum].origin == origin)
 		{
 			S_StopChannel(cnum);
-			break;
 		}
 	}
 }
-- 
GitLab