From: divverent Date: Tue, 4 Oct 2011 07:35:30 +0000 (+0000) Subject: sound: when randomizing sound start times, check pitch (base speed) too X-Git-Tag: xonotic-v0.6.0~163^2~166 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=6d2396afcbd2468777f372c680af9a3b679d44a0;p=xonotic%2Fdarkplaces.git 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 --- 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);