From af0449da4301051bcaf05c1ed9a23a3d65f816c6 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 31 Jul 2003 01:18:52 +0000 Subject: [PATCH] Fix negative chaos values. --- stepmania/src/NoteDataWithScoring.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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