From 6d2396afcbd2468777f372c680af9a3b679d44a0 Mon Sep 17 00:00:00 2001 From: divverent Date: Tue, 4 Oct 2011 07:35:30 +0000 Subject: [PATCH] sound: when randomizing sound start times, check pitch (base speed) too git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11388 d7cf8633-e32d-0410-b094-e92efae38249 --- snd_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snd_main.c b/snd_main.c index 70ea80a5..d0a1011c 100644 --- a/snd_main.c +++ b/snd_main.c @@ -1675,7 +1675,7 @@ int S_StartSound_StartPosition_Flags (int entnum, int entchannel, sfx_t *sfx, ve { if (check == target_chan) continue; - if (check->sfx == sfx && check->position == 0) + if (check->sfx == sfx && check->position == 0 && check->basespeed == fspeed) { // use negative pos offset to delay this sound effect startpos = lhrandom(0, -0.1 * sfx->format.speed); -- 2.39.2