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

signed char conversion.

git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@794 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
sezero 2013-01-11 20:58:08 +00:00
parent aeb02aa793
commit b6b05dba3d
1 changed files with 1 additions and 1 deletions

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;
}
}
}