]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - snd_mix.c
fixed 'black models' bugs in RecursiveLightPoint code
[xonotic/darkplaces.git] / snd_mix.c
index 35b9dd519fd04f0f17879c512a2c0afa9bac9473..e27b97dd65e89e12fef7eac176ee414139c295ec 100644 (file)
--- a/snd_mix.c
+++ b/snd_mix.c
@@ -61,7 +61,7 @@ void S_CaptureAVISound(portable_samplepair_t *buf, int length)
                if (fwrite(out, 4, length, cl_avidemo_soundfile) < length)
                {
                        Cvar_SetValueQuick(&cl_avidemo, 0);
-                       Con_Printf("avi saving sound failed, out of disk space?  stopping avi demo capture.\n");
+                       Con_Print("avi saving sound failed, out of disk space?  stopping avi demo capture.\n");
                }
        }
        else if (cl_avidemo_soundfile)
@@ -313,9 +313,9 @@ void S_PaintChannels(int endtime)
                                // if at end of loop, restart
                                if (ltime >= ch->end)
                                {
-                                       if (sc->loopstart >= 0)
+                                       if (sc->loopstart >= 0 || ch->forceloop)
                                        {
-                                               ch->pos = sc->loopstart;
+                                               ch->pos = bound(0, sc->loopstart, sc->length - 1);
                                                ch->end = ltime + sc->length - ch->pos;
                                        }
                                        else