Let Mac OS X have goodies.

This commit is contained in:
Jason Felds
2013-04-29 23:37:10 -04:00
parent 71d993ee39
commit c07d4cf78f
11 changed files with 4 additions and 117 deletions
+1 -8
View File
@@ -314,15 +314,8 @@ int PlayerStageStats::GetLessonScoreActual() const
int PlayerStageStats::GetLessonScoreNeeded() const
{
#ifdef MACOSX
float score = 0;
for (Steps const *steps : m_vpPossibleSteps)
score += steps->GetRadarValues( PLAYER_1 ).m_Values.v.fNumTapsAndHolds;
#else
float score = std::accumulate(m_vpPossibleSteps.begin(), m_vpPossibleSteps.end(), 0.f,
float score = std::accumulate(m_vpPossibleSteps.begin(), m_vpPossibleSteps.end(), 0.f,
[](float total, Steps const *steps) { return total += steps->GetRadarValues(PLAYER_1).m_Values.v.fNumTapsAndHolds; });
#endif
return lrintf( score * LESSON_PASS_THRESHOLD );
}