]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - snd_mix.c
removed crash parameter from Host_ShudownServer, eliminated NetConn_SendToAll and...
[xonotic/darkplaces.git] / snd_mix.c
index f4a857d3dec212297774fbcb8fd216c94aa9e61d..8ba7a5e0b29e7beb42fb7299b6a98a2a2203f333 100644 (file)
--- a/snd_mix.c
+++ b/snd_mix.c
@@ -303,7 +303,9 @@ void S_TransferPaintBuffer(int endtime)
                                {
                                        // 1.0 mono
                                        for (i = 0;i < snd_frames;i++, snd_p++)
+                                       {
                                                val = ((snd_p->sample[0]+snd_p->sample[1]) >> 9) + 128;*snd_out++ = bound(0, val, 255);
+                                       }
                                }
                        }
                }
@@ -347,8 +349,6 @@ void S_PaintChannels(int endtime)
                        sfx = ch->sfx;
                        if (!sfx)
                                continue;
-                       if (sfx->fetcher)
-                               j++;
                        for (j = 0;j < SND_LISTENERS;j++)
                                if (ch->listener_volume[j])
                                        break;