don't show locked Steps in ranking

This commit is contained in:
Chris Danford
2005-06-27 05:24:14 +00:00
parent 5de59d0c51
commit 67477a6192
+1 -1
View File
@@ -850,7 +850,7 @@ float ScreenRanking::SetPage( PageToShow pts )
FOREACH_CONST( Difficulty, DIFFICULTIES_TO_SHOW.GetValue(), iter ) FOREACH_CONST( Difficulty, DIFFICULTIES_TO_SHOW.GetValue(), iter )
{ {
const Steps* pSteps = pSong->GetStepsByDifficulty( pts.st, *iter, false ); const Steps* pSteps = pSong->GetStepsByDifficulty( pts.st, *iter, false );
if( UNLOCKMAN->StepsIsLocked( pSong, pSteps ) ) if( pSteps && UNLOCKMAN->StepsIsLocked(pSong, pSteps) )
pSteps = NULL; pSteps = NULL;
BitmapText* pTextStepsScore = &item.m_textScore[*iter]; BitmapText* pTextStepsScore = &item.m_textScore[*iter];