]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
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 ebf166544c8ba7c435d83c15e720c4b977eebc30..d7a62553cd0aeb41ac4e7e8a72c9602b2c3626ee 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;
                        }