account for bonus in eval screen for 5th scoring

This commit is contained in:
Andrew Wong
2003-08-12 06:09:49 +00:00
parent 372881248e
commit 1d0a297886
+2 -1
View File
@@ -136,6 +136,7 @@ ScreenEvaluation::ScreenEvaluation( CString sClassName, Type type ) : Screen(sCl
{ {
int ScoreBonuses[9] = {0, 0, 100, 1000, 10000, 100000, 1000000, 10000000, 10000000}; int ScoreBonuses[9] = {0, 0, 100, 1000, 10000, 100000, 1000000, 10000000, 10000000};
GAMESTATE->m_CurStageStats.iBonus[p] += ScoreBonuses[(int)grade[p] ]; GAMESTATE->m_CurStageStats.iBonus[p] += ScoreBonuses[(int)grade[p] ];
stageStats.iBonus[p] += ScoreBonuses[(int)grade[p] ];
} }
} }
@@ -168,7 +169,7 @@ ScreenEvaluation::ScreenEvaluation( CString sClassName, Type type ) : Screen(sCl
{ {
if( GAMESTATE->IsHumanPlayer(p) ) if( GAMESTATE->IsHumanPlayer(p) )
{ {
GAMESTATE->m_pCurNotes[p]->AddScore( (PlayerNumber)p, grade[p], stageStats.iScore[p], bNewRecord[p] ); GAMESTATE->m_pCurNotes[p]->AddScore( (PlayerNumber)p, grade[p], stageStats.iScore[p] + stageStats.iBonus[p], bNewRecord[p] );
// update unlock data if unlocks are on // update unlock data if unlocks are on
if ( PREFSMAN->m_bUseUnlockSystem ) if ( PREFSMAN->m_bUseUnlockSystem )