Change RadarValues internal implementation to not use a union and use the subscript operator instead of the float* operator for subscripting.

This commit is contained in:
Kyzentun
2014-08-22 13:19:17 -06:00
parent 8b062785ea
commit 2c49ec7380
6 changed files with 42 additions and 36 deletions
+3 -1
View File
@@ -316,7 +316,9 @@ int PlayerStageStats::GetLessonScoreNeeded() const
float fScore = 0;
FOREACH_CONST( Steps*, m_vpPossibleSteps, steps )
fScore += (*steps)->GetRadarValues( PLAYER_1 ).m_Values.v.fNumTapsAndHolds;
{
fScore += (*steps)->GetRadarValues(PLAYER_1)[RadarCategory_TapsAndHolds];
}
return lrintf( fScore * LESSON_PASS_THRESHOLD );
}