allow display of negative dance points

stop counting dance points after fail
This commit is contained in:
Chris Danford
2004-01-12 06:45:36 +00:00
parent 5f10d10abb
commit 96a7cb0bcd
3 changed files with 23 additions and 3 deletions
+4 -1
View File
@@ -256,8 +256,11 @@ float StageStats::GetPercentDancePoints( PlayerNumber pn ) const
if( iActualDancePoints[pn] == iPossibleDancePoints[pn] )
return 1; // correct for rounding error
ASSERT( iActualDancePoints[pn] <= iPossibleDancePoints[pn] );
float fPercentDancePoints = iActualDancePoints[pn] / (float)iPossibleDancePoints[pn];
return clamp( fPercentDancePoints, 0, 1 );
return fPercentDancePoints;
}
void StageStats::SetLifeRecord( PlayerNumber pn, float life, float pos )