From 8270f84ff002938919cb053311f1c8331cb5d542 Mon Sep 17 00:00:00 2001 From: Jason Rohrer Date: Sat, 19 Mar 2022 14:12:22 -0400 Subject: [PATCH] Fixed two unused variable warnings. --- gameSource/Music.cpp | 14 +++++++------- gameSource/imageCache.cpp | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/gameSource/Music.cpp b/gameSource/Music.cpp index e31a8aa..8346e85 100644 --- a/gameSource/Music.cpp +++ b/gameSource/Music.cpp @@ -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; y4 ) { - 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 ); diff --git a/gameSource/imageCache.cpp b/gameSource/imageCache.cpp index c39e6ae..583dc5e 100644 --- a/gameSource/imageCache.cpp +++ b/gameSource/imageCache.cpp @@ -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;