don't save awards in Profile. This info isn't used anywhere and won't be anytime soon.

This commit is contained in:
Chris Danford
2004-07-25 18:56:05 +00:00
parent d51010ff7b
commit 4656fd713f
3 changed files with 0 additions and 242 deletions
-46
View File
@@ -1111,52 +1111,6 @@ void ScreenEvaluation::CommitScores(
pcaToShowOut[p] = GAMESTATE->m_vLastPeakComboAwards[p].back();
LOG->Trace( "done with per combo awards" );
//
// erase awards from the Last list that have been received so that we
// won't show them again.
//
if( !PROFILEMAN->IsUsingProfile(p) )
{
// don't show any awards on ScreenAward unless using a profile
GAMESTATE->m_vLastPerDifficultyAwards[p].clear();
GAMESTATE->m_vLastPeakComboAwards[p].clear();
}
else
{
Profile* pProfile = PROFILEMAN->GetProfile(p);
switch( m_Type )
{
case stage:
for( int i=GAMESTATE->m_vLastPerDifficultyAwards[p].size()-1; i>=0; i-- )
{
PerDifficultyAward pda = GAMESTATE->m_vLastPerDifficultyAwards[p][i];
Steps* pSteps = stageStats.pSteps[p];
ASSERT( pSteps != NULL );
bool bAlreadyHad = pProfile->HasPerDifficultyAward( pSteps->m_StepsType, pSteps->GetDifficulty(), pda );
pProfile->AddPerDifficultyAward( pSteps->m_StepsType, pSteps->GetDifficulty(), pda );
if( bAlreadyHad )
GAMESTATE->m_vLastPerDifficultyAwards[p].erase( GAMESTATE->m_vLastPerDifficultyAwards[p].begin()+i );
}
}
LOG->Trace( "done erasing dupe pdas" );
{
for( int i=GAMESTATE->m_vLastPeakComboAwards[p].size()-1; i>=0; i-- )
{
PeakComboAward pca = GAMESTATE->m_vLastPeakComboAwards[p][i];
bool bAlreadyHad = pProfile->HasPeakComboAward( pca );
pProfile->AddPeakComboAward( pca );
if( bAlreadyHad )
GAMESTATE->m_vLastPeakComboAwards[p].erase( GAMESTATE->m_vLastPeakComboAwards[p].begin()+i );
}
}
LOG->Trace( "done erasing pcas" );
}
}
}