From 86001c793cee263457e06b27e4c8e6698f8e56c2 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 22 Sep 2005 03:10:47 +0000 Subject: [PATCH] fix warning --- stepmania/src/PlayerStageStats.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/stepmania/src/PlayerStageStats.cpp b/stepmania/src/PlayerStageStats.cpp index 9d0e8988f5..7ceae20042 100644 --- a/stepmania/src/PlayerStageStats.cpp +++ b/stepmania/src/PlayerStageStats.cpp @@ -263,13 +263,12 @@ int PlayerStageStats::GetLessonScoreActual() const int PlayerStageStats::GetLessonScoreNeeded() const { - int iScore = 0; + float fScore = 0; FOREACH_CONST( Steps*, vpPossibleSteps, steps ) - iScore += (*steps)->GetRadarValues().m_Values.v.fNumTapsAndHolds; + fScore += (*steps)->GetRadarValues().m_Values.v.fNumTapsAndHolds; - iScore = (int)floorf( iScore * LESSON_PASS_THRESHOLD ); - return iScore; + return lrintf( fScore * LESSON_PASS_THRESHOLD ); } void PlayerStageStats::ResetScoreForLesson()