show per-difficulty awards on the eval screen even if not using a profile

This commit is contained in:
Chris Danford
2004-05-31 20:40:44 +00:00
parent 09aeac7551
commit ce4274af53
+14 -6
View File
@@ -1045,12 +1045,6 @@ void ScreenEvaluation::CommitScores(
{ {
FOREACH_HumanPlayer( p ) FOREACH_HumanPlayer( p )
{ {
// must be using a profile to receive awards
if( !PROFILEMAN->IsUsingProfile(p) )
continue;
Profile* pProfile = PROFILEMAN->GetProfile(p);
deque<PerDifficultyAward> &vPdas = GAMESTATE->m_vLastPerDifficultyAwards[p]; deque<PerDifficultyAward> &vPdas = GAMESTATE->m_vLastPerDifficultyAwards[p];
LOG->Trace( "per difficulty awards" ); LOG->Trace( "per difficulty awards" );
@@ -1117,8 +1111,21 @@ void ScreenEvaluation::CommitScores(
LOG->Trace( "done with per combo awards" ); LOG->Trace( "done with per combo awards" );
//
// erase awards from the Last list that have been received so that we // erase awards from the Last list that have been received so that we
// won't show them again. // 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 ) switch( m_Type )
{ {
case stage: case stage:
@@ -1150,6 +1157,7 @@ void ScreenEvaluation::CommitScores(
LOG->Trace( "done erasing pcas" ); LOG->Trace( "done erasing pcas" );
} }
} }
}
LOG->Trace( "done handing out awards." ); LOG->Trace( "done handing out awards." );
} }