simplify
This commit is contained in:
@@ -201,18 +201,6 @@ ScreenEvaluation::ScreenEvaluation( CString sClassName ) : Screen(sClassName)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Grade best_grade = GRADE_NO_DATA;
|
|
||||||
for( p=0; p<NUM_PLAYERS; p++ )
|
|
||||||
{
|
|
||||||
best_grade = min( best_grade, grade[p] );
|
|
||||||
|
|
||||||
// if its extra stage, update # passed stages
|
|
||||||
if ( (GAMESTATE->IsExtraStage() || GAMESTATE->IsExtraStage2() ) &&
|
|
||||||
grade[p] > GRADE_FAILED &&
|
|
||||||
m_Type != summary)
|
|
||||||
UNLOCKSYS->UnlockClearExtraStage();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
for( p=0; p<NUM_PLAYERS; p++ )
|
for( p=0; p<NUM_PLAYERS; p++ )
|
||||||
{
|
{
|
||||||
@@ -227,6 +215,11 @@ ScreenEvaluation::ScreenEvaluation( CString sClassName ) : Screen(sClassName)
|
|||||||
UNLOCKSYS->UnlockAddAP( grade[p] );
|
UNLOCKSYS->UnlockAddAP( grade[p] );
|
||||||
UNLOCKSYS->UnlockAddSP( grade[p] );
|
UNLOCKSYS->UnlockAddSP( grade[p] );
|
||||||
UNLOCKSYS->UnlockAddDP( (float)stageStats.iActualDancePoints[p] );
|
UNLOCKSYS->UnlockAddDP( (float)stageStats.iActualDancePoints[p] );
|
||||||
|
|
||||||
|
// if it's extra stage, update # passed stages
|
||||||
|
if ( (GAMESTATE->IsExtraStage() || GAMESTATE->IsExtraStage2() ) &&
|
||||||
|
grade[p] > GRADE_FAILED )
|
||||||
|
UNLOCKSYS->UnlockClearExtraStage();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case course:
|
case course:
|
||||||
@@ -776,6 +769,10 @@ ScreenEvaluation::ScreenEvaluation( CString sClassName ) : Screen(sClassName)
|
|||||||
if( GAMESTATE->IsPlayerEnabled(p) && (iMachineHighScoreIndex[p] != -1 || iPersonalHighScoreIndex[p] != -1) )
|
if( GAMESTATE->IsPlayerEnabled(p) && (iMachineHighScoreIndex[p] != -1 || iPersonalHighScoreIndex[p] != -1) )
|
||||||
bOneHasNewTopRecord = true;
|
bOneHasNewTopRecord = true;
|
||||||
|
|
||||||
|
Grade best_grade = GRADE_NO_DATA;
|
||||||
|
for( p=0; p<NUM_PLAYERS; p++ )
|
||||||
|
best_grade = min( best_grade, grade[p] );
|
||||||
|
|
||||||
if( PREFSMAN->m_bAllowExtraStage && m_bTryExtraStage )
|
if( PREFSMAN->m_bAllowExtraStage && m_bTryExtraStage )
|
||||||
{
|
{
|
||||||
m_sprTryExtraStage.Load( THEME->GetPathToG(GAMESTATE->IsExtraStage()?"ScreenEvaluation try extra2":"ScreenEvaluation try extra1") );
|
m_sprTryExtraStage.Load( THEME->GetPathToG(GAMESTATE->IsExtraStage()?"ScreenEvaluation try extra2":"ScreenEvaluation try extra1") );
|
||||||
|
|||||||
Reference in New Issue
Block a user