snd_mix.c (SND_InitScaletable): fixed an off-by-one mistake in the

signed char conversion.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@794 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
Ozkan Sezer 2013-01-11 20:58:08 +00:00
parent 9ea0212280
commit c26d43f07f

View file

@ -276,7 +276,7 @@ void SND_InitScaletable (void)
See: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26719
*/
// snd_scaletable[i][j] = ((signed char)j) * scale;
snd_scaletable[i][j] = ((j < 128) ? j : j - 0xff) * scale;
snd_scaletable[i][j] = ((j < 128) ? j : j - 256) * scale;
}
}
}