cleanup: don't cast bool to int

This commit is contained in:
Chris Danford
2005-03-16 04:10:10 +00:00
parent b4132c8919
commit c45c229995
2 changed files with 16 additions and 10 deletions
+8 -4
View File
@@ -162,12 +162,16 @@ public:
};
bool RageSound::Load( CString sSoundFilePath, int precache )
bool RageSound::Load( CString sSoundFilePath )
{
LOG->Trace( "RageSound::LoadSound( '%s' )", sSoundFilePath.c_str() );
/* Automatically determine whether to precache */
/* TODO: Hook this up to a pref? */
return Load( sSoundFilePath, false );
}
if(precache == 2)
precache = false;
bool RageSound::Load( CString sSoundFilePath, bool precache )
{
LOG->Trace( "RageSound::LoadSound( '%s', %d )", sSoundFilePath.c_str(), precache );
CString error;
SoundReader *pSound = SoundReader_FileReader::OpenFile( sSoundFilePath, error );