git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4584
d7cf8633-e32d-0410-b094-
e92efae38249
if (count > 0)
{
+ if (ch->leftvol > 255)
+ ch->leftvol = 255;
+ if (ch->rightvol > 255)
+ ch->rightvol = 255;
+
if (sfx->format.width == 1)
stop_paint = !SND_PaintChannelFrom8(ch, count);
else
const sfxbuffer_t *sb;
int i, n;
- if (ch->leftvol > 255)
- ch->leftvol = 255;
- if (ch->rightvol > 255)
- ch->rightvol = 255;
-
lscale = snd_scaletable[ch->leftvol >> 3];
rscale = snd_scaletable[ch->rightvol >> 3];