From 74f17609dce566a928b10a571585697e92c771cc Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Sun, 10 Apr 2005 04:48:21 +0000 Subject: [PATCH] don't insert scores higher than 100% --- stepmania/src/GameCommand.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/stepmania/src/GameCommand.cpp b/stepmania/src/GameCommand.cpp index 1f4a1ea58f..b1780eb2f2 100644 --- a/stepmania/src/GameCommand.cpp +++ b/stepmania/src/GameCommand.cpp @@ -771,6 +771,7 @@ void GameCommand::ApplySelf( const vector &vpns ) const // Choose a percent for all scores. This is useful for testing unlocks // where some elements are unlocked at a certain percent complete float fPercentDP = randomf( 0.6f, 1.2f ); + CLAMP( fPercentDP, 0.0f, 1.0f ); Profile* pProfile = PROFILEMAN->GetMachineProfile();