diff --git a/stepmania/src/Song.cpp b/stepmania/src/Song.cpp index 77251bc08c..2635d5f0a6 100644 --- a/stepmania/src/Song.cpp +++ b/stepmania/src/Song.cpp @@ -777,6 +777,33 @@ void Song::TidyUpData() this->AddBackgroundChange( BackgroundChange(0,arrayPossibleMovies[0],1.f,true,true,false) ); } + + /* Don't allow multiple Steps of the same StepsType and Diffiuclty. + * This happens a lot reading BMS files because they we have to guess + * the Difficulty from the meter. */ + for( i=0; i vSteps; + this->GetSteps( vSteps, st, dc ); + SortNotesArrayByDifficulty( vSteps ); + for( unsigned k=1; kSetDifficulty( dc2 ); + } + } + } + + + // Compress all Steps for( i=0; iCompress();