force Leap to choose a song wheel item

This commit is contained in:
Chris Danford
2004-05-03 02:44:56 +00:00
parent 9d1a89d0d5
commit ce6e2d5ae8
2 changed files with 9 additions and 2 deletions
+8 -1
View File
@@ -1320,7 +1320,14 @@ void MusicWheel::StartLeap()
SetOpenGroup("", SortOrder(m_LastSortOrder));
}
m_iSelection = rand() % m_CurWheelItemData.size();
// probe to find a song
for( int i=0; i<20; i++ )
{
m_iSelection = rand() % m_CurWheelItemData.size();
if( m_CurWheelItemData[m_iSelection]->m_Type == TYPE_SONG )
break; // done searching
}
m_fPositionOffsetFromSelection = 0;
m_WheelState = STATE_SELECTING_MUSIC;
SCREENMAN->PlayStartSound();