fix feat score

This commit is contained in:
Chris Danford
2003-10-22 12:51:19 +00:00
parent bd585e46a1
commit 4556c0f246
2 changed files with 5 additions and 7 deletions
+4 -1
View File
@@ -822,7 +822,10 @@ void GameState::GetRankingFeats( PlayerNumber pn, vector<RankingFeats> &asFeatsO
feat.Feat = ssprintf("MR #%d in %s %s", j+1, pSong->GetTranslitMainTitle().c_str(), DifficultyToString(pSteps->GetDifficulty()).c_str() );
feat.pStringToFill = &vMachineHighScores[j].sName;
feat.g = vMachineHighScores[j].grade;
feat.Score = (float) vMachineHighScores[j].iScore;
if( PREFSMAN->m_bPercentageScoring )
feat.Score = vMachineHighScores[j].fPercentDP;
else
feat.Score = (float) vMachineHighScores[j].iScore;
// XXX: temporary hack
if( pSong->HasBackground() )
+1 -6
View File
@@ -185,14 +185,9 @@ ScreenEvaluation::ScreenEvaluation( CString sClassName ) : Screen(sClassName)
case stage:
{
ASSERT( GAMESTATE->m_pCurNotes[p] );
int score;
if( PREFSMAN->m_bPercentageScoring )
score = stageStats.GetPercentDancePoints( (PlayerNumber)p );
else
score = stageStats.iScore[p] + stageStats.iBonus[p];
Steps::MemCardData::HighScore hs;
hs.grade = grade[p];
hs.iScore = score;
hs.iScore = stageStats.iScore[p] + stageStats.iBonus[p];
hs.fPercentDP = stageStats.GetPercentDancePoints( (PlayerNumber)p );
GAMESTATE->m_pCurNotes[p]->AddHighScore( (PlayerNumber)p, hs, iPersonalHighScoreIndex[p], iMachineHighScoreIndex[p] );