General cleanup.

This commit is contained in:
Jason Felds
2006-08-19 19:44:23 +00:00
parent 65b2022445
commit 3c3c1ca896
+8 -7
View File
@@ -296,13 +296,14 @@ void KSFLoader::LoadTags( const RString &str, Song &out )
vector<RString> asBits; vector<RString> asBits;
split( str, " - ", asBits, false ); split( str, " - ", asBits, false );
/* Ignore the difficulty, since we get that elsewhere. */ /* Ignore the difficulty, since we get that elsewhere. */
if( asBits.size() == 3 && if( asBits.size() == 3 && (
(!stricmp(asBits[2], "double") || !stricmp(asBits[2], "double") ||
!stricmp(asBits[2], "easy") || !stricmp(asBits[2], "easy") ||
!stricmp(asBits[2], "normal") || !stricmp(asBits[2], "normal") ||
!stricmp(asBits[2], "hard") || !stricmp(asBits[2], "hard") ||
!stricmp(asBits[2], "crazy") || !stricmp(asBits[2], "crazy") ||
!stricmp(asBits[2], "nightmare")) ) !stricmp(asBits[2], "nightmare"))
)
{ {
asBits.erase( asBits.begin()+2, asBits.begin()+3 ); asBits.erase( asBits.begin()+2, asBits.begin()+3 );
} }