1
0
Fork 0

Make visual C++ 2003 happy

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3365
This commit is contained in:
Peter Veenstra 2009-04-26 20:13:22 +00:00
parent 75da889c3e
commit d261fb01fd

View file

@ -1293,7 +1293,7 @@ void InitTables( void ) {
//Exponential volume table, same as the real adlib
for ( int i = 0; i < 256; i++ ) {
//Save them in reverse
ExpTable[i] = (int)( 0.5 + ( pow(2, ( 255 - i) * ( 1.0 /256 ) )-1) * 1024 );
ExpTable[i] = (int)( 0.5 + ( pow(2.0, ( 255 - i) * ( 1.0 /256 ) )-1) * 1024 );
ExpTable[i] += 1024; //or remove the -1 oh well :)
//Preshift to the left once so the final volume can shift to the right
ExpTable[i] *= 2;