Fixed two unused variable warnings.

This commit is contained in:
Jason Rohrer 2022-03-19 14:12:22 -04:00
parent d9b1b11a42
commit 8270f84ff0
2 changed files with 8 additions and 8 deletions

View File

@ -260,7 +260,7 @@ Image *Music::getImage() {
channels[i] = image->getChannel( i );
}
Color *drawColor = &lowColor;
//Color *drawColor = &lowColor;
//Color *drawColorA = &lowColor;//&toneLowColor;
//Color *drawColorB = &medColor;//&toneHighColor;
@ -269,12 +269,12 @@ Image *Music::getImage() {
for( int y=0; y<N; y++ ) {
if( y>4 ) {
drawColor = &medColor;
}
if( y>9 ) {
drawColor = &hiColor;
}
//if( y>4 ) {
// drawColor = &medColor;
// }
//if( y>9 ) {
// drawColor = &hiColor;
// }
Color *levelColor = Color::linearSum( &drawColorB, &drawColorA,
y / (float)N );

View File

@ -52,7 +52,7 @@ static File *getCacheFile( uniqueID inID, char inUseTrans ) {
transFlag = 1;
}
char *name = autoSprintf( "%s_%d", idString, inUseTrans );
char *name = autoSprintf( "%s_%d", idString, transFlag );
delete [] idString;