From: Glenn M. <gma...@us...> - 2004-03-29 21:20:29
|
Update of /cvsroot/stepmania/stepmania/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21722 Modified Files: NotesLoaderDWI.cpp Log Message: don't put the difficulty in the description Index: NotesLoaderDWI.cpp =================================================================== RCS file: /cvsroot/stepmania/stepmania/src/NotesLoaderDWI.cpp,v retrieving revision 1.50 retrieving revision 1.51 diff -u -d -p -r1.50 -r1.51 --- NotesLoaderDWI.cpp 26 Mar 2004 22:56:17 -0000 1.50 +++ NotesLoaderDWI.cpp 29 Mar 2004 21:08:59 -0000 1.51 @@ -152,12 +152,9 @@ bool DWILoader::LoadFromDWITokens( } int iNumFeet = atoi(sNumFeet); - out.SetDescription(sDescription); + // out.SetDescription(sDescription); // Don't put garbage in the description. out.SetMeter(iNumFeet); - if( sDescription.CompareNoCase("basic")==0 ) out.SetDifficulty( DIFFICULTY_EASY ); - else if( sDescription.CompareNoCase("trick")==0 ) out.SetDifficulty( DIFFICULTY_MEDIUM ); - else if( sDescription.CompareNoCase("maniac")==0 ) out.SetDifficulty( DIFFICULTY_HARD ); - else if( sDescription.CompareNoCase("smaniac")==0 ) out.SetDifficulty( DIFFICULTY_CHALLENGE ); + out.SetDifficulty( StringToDifficulty(sDescription) ); NoteData newNoteData; newNoteData.SetNumTracks( g_mapDanceNoteToNoteDataColumn.size() ); |