fix a typo (but it was harmless)
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 27 Feb 2008 16:04:46 +0000 (16:04 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 27 Feb 2008 16:04:46 +0000 (16:04 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8147 d7cf8633-e32d-0410-b094-e92efae38249

snd_mix.c

index ebf1665..d7a6255 100644 (file)
--- a/snd_mix.c
+++ b/snd_mix.c
@@ -487,7 +487,7 @@ void S_MixToBuffer(void *stream, unsigned int bufferframes)
                        if (ch->pos < 0)
                        {
                                count = -ch->pos;
-                               count = min(count, frames);
+                               count = min(count, frames - ltime);
                                ch->pos += count;
                                ltime += count;
                        }