diff --git a/stepmania/src/NoteDataWithScoring.cpp b/stepmania/src/NoteDataWithScoring.cpp index ab4dc5f155..a37d4679ba 100644 --- a/stepmania/src/NoteDataWithScoring.cpp +++ b/stepmania/src/NoteDataWithScoring.cpp @@ -12,6 +12,7 @@ #include "NoteDataWithScoring.h" #include "GameState.h" +#include "RageUtil.h" NoteDataWithScoring::NoteDataWithScoring() { @@ -249,7 +250,7 @@ float NoteDataWithScoring::GetActualChaosRadarValue( float fSongSeconds, PlayerN float fResult = float(ActualDP)/PossibleDP; - return min( fResult, 1.0f ); + return clamp( fResult, 0.0f, 1.0f ); } float NoteDataWithScoring::GetActualFreezeRadarValue( float fSongSeconds, PlayerNumber pn ) const