force Leap to choose a song wheel item
This commit is contained in:
@@ -1320,7 +1320,14 @@ void MusicWheel::StartLeap()
|
|||||||
SetOpenGroup("", SortOrder(m_LastSortOrder));
|
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_fPositionOffsetFromSelection = 0;
|
||||||
m_WheelState = STATE_SELECTING_MUSIC;
|
m_WheelState = STATE_SELECTING_MUSIC;
|
||||||
SCREENMAN->PlayStartSound();
|
SCREENMAN->PlayStartSound();
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ CString GetStatsLineValue( PlayerNumber pn, int iLine )
|
|||||||
case PERCENT_COMPLETE:
|
case PERCENT_COMPLETE:
|
||||||
{
|
{
|
||||||
double fPercent = 100.0 * pProfile->GetTotalHighScoreDancePointsForStepsType(st) / (double)pProfile->GetTotalPossibleDancePointsForStepsType(st);
|
double fPercent = 100.0 * pProfile->GetTotalHighScoreDancePointsForStepsType(st) / (double)pProfile->GetTotalPossibleDancePointsForStepsType(st);
|
||||||
return ssprintf( "%02.4f%%", fPercent );
|
return ssprintf( "%02.3f%%", fPercent );
|
||||||
}
|
}
|
||||||
case TOTAL_CALORIES: return pProfile->GetDisplayTotalCaloriesBurned();
|
case TOTAL_CALORIES: return pProfile->GetDisplayTotalCaloriesBurned();
|
||||||
case TOTAL_SONGS_PLAYED: return Commify( pProfile->GetTotalNumSongsPlayed() );
|
case TOTAL_SONGS_PLAYED: return Commify( pProfile->GetTotalNumSongsPlayed() );
|
||||||
|
|||||||
Reference in New Issue
Block a user