diff --git a/stepmania/src/Background.cpp b/stepmania/src/Background.cpp index 552eea4488..8fdd7b0aad 100644 --- a/stepmania/src/Background.cpp +++ b/stepmania/src/Background.cpp @@ -370,8 +370,28 @@ void Background::LoadFromSong( Song* pSong ) // sort segments SortBackgroundChangesArray( m_aBGChanges ); + // Look for the filename "Random", and replace the segment with LoadFromRandom. + unsigned i = 0; + for( i=0; im_Timing ); + } + + // Re-sort. + SortBackgroundChangesArray( m_aBGChanges ); + // scale all rates by the current music rate - for( unsigned i=0; im_SongOptions.m_fMusicRate;