mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-10 07:21:58 +00:00
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:
parent
aeb02aa793
commit
b6b05dba3d
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue