don't insert scores higher than 100%

This commit is contained in:
Chris Danford
2005-04-10 04:48:21 +00:00
parent cc426997cc
commit 74f17609dc
+1
View File
@@ -771,6 +771,7 @@ void GameCommand::ApplySelf( const vector<PlayerNumber> &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();